This commit is contained in:
2026-04-20 19:32:50 -04:00
parent 080d23d7b6
commit 359a331ec4
4 changed files with 55 additions and 13 deletions

View File

@@ -11,5 +11,22 @@ def item_menu(cat: data.cat.Cat, item):
systems.world.feed(cat)
case "Back":
pass
case "Medicine":
match ui.select(
"Please choose an option", [f"Give your cat the medicine", "Back"]
):
case "Give your cat the medicine":
if cat.inventory.get("Medicine", False):
cat.sick = False
cat.fullness = 25.0
cat.inventory["Medicine"] -= 1
print(
f"{cat.name} eats the medicine. {cat.name} is feeling better! They still are hungry though."
)
else:
print("You don't have any medicine!")
case "Back":
pass
case _:
pass