From bd8567e9f7ad0d2aa272aecbf08edfdcf0471d61 Mon Sep 17 00:00:00 2001 From: Owen Feldman Date: Fri, 17 Apr 2026 18:45:16 -0400 Subject: [PATCH] Negative food fix --- systems/world.py | 1 + 1 file changed, 1 insertion(+) diff --git a/systems/world.py b/systems/world.py index c242402..86eb5e5 100644 --- a/systems/world.py +++ b/systems/world.py @@ -150,6 +150,7 @@ def feed(cat): # TODO: Make this use inventory["Food"] instead! if cat.food <= 0: print(f"You don't have any food. {cat.name} is sad.") + return cat.food -= 1 print(f"You feed {cat.name}, {cat.name} is happy")