inventory and feed

This commit is contained in:
2026-06-25 16:32:40 -04:00
parent f61889195c
commit 188c1be7bf
4 changed files with 29 additions and 8 deletions

View File

@@ -44,9 +44,12 @@ def reconcile(cat: model.Cat, now):
cat.last_updated = now
def feed(cat, amount=100):
cat.fullness += amount
cat.fullness = _clamp(cat.fullness)
def feed(player, cat, amount=content.FOOD_RESTORE):
if player.inventory["food"] <= 0:
return False
player.inventory["food"] -= 1
cat.fullness = _clamp(cat.fullness + amount)
return True
def excite(cat, amount=100):