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