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

@@ -62,10 +62,11 @@ def test_decay_and_replenish():
last_updated=0,
),
)
cat.player.inventory["food"] = 1
rules.reconcile(cat.cat, 3600 * 2)
assert cat.cat.happiness < 98
assert cat.cat.fullness < 98
rules.feed(cat.cat)
rules.feed(cat.player, cat.cat)
assert cat.cat.fullness == pytest.approx(100)
rules.reconcile(cat.cat, 7200 + 20 * 3600)
assert cat.cat.happiness < 96 - (content.BASE_HAPPINESS_DECAY_PER_HOUR * 20)