Negative food fix

This commit is contained in:
2026-04-17 18:45:16 -04:00
parent d6d28c17f6
commit bd8567e9f7

View File

@@ -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")