Negative food fix
This commit is contained in:
@@ -150,6 +150,7 @@ def feed(cat):
|
|||||||
# TODO: Make this use inventory["Food"] instead!
|
# TODO: Make this use inventory["Food"] instead!
|
||||||
if cat.food <= 0:
|
if cat.food <= 0:
|
||||||
print(f"You don't have any food. {cat.name} is sad.")
|
print(f"You don't have any food. {cat.name} is sad.")
|
||||||
|
return
|
||||||
cat.food -= 1
|
cat.food -= 1
|
||||||
print(f"You feed {cat.name}, {cat.name} is happy")
|
print(f"You feed {cat.name}, {cat.name} is happy")
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user