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