This commit is contained in:
2026-06-24 19:43:17 -04:00
parent e4ad34faa1
commit 5868d03413
4 changed files with 14 additions and 13 deletions

View File

@@ -21,13 +21,13 @@ def reconcile(cat, now):
elapsed_hours = (now - cat.last_updated) / 3600
if elapsed_hours <= 0:
return
cat.hunger -= content.HUNGER_DECAY_PER_HOUR * elapsed_hours
if cat.hunger < 0:
cat.hunger = 0
cat.fullness -= content.HUNGER_DECAY_PER_HOUR * elapsed_hours
if cat.fullness < 0:
cat.fullness = 0
cat.last_updated = now
def feed(cat, amount=100):
cat.hunger += amount
if cat.hunger > 100:
cat.hunger = 100
cat.fullness += amount
if cat.fullness > 100:
cat.fullnesss = 100