inventory and feed
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user