depressed

This commit is contained in:
2026-04-21 08:03:12 -04:00
parent 359a331ec4
commit 653fcd7034
4 changed files with 78 additions and 28 deletions

View File

@@ -203,8 +203,14 @@ def storage(cat: Cat):
def house(cat: Cat):
print("Welcome to your house!")
if cat.sick:
if cat.sick and cat.depressed:
print(
f"{cat.name} is sick and depressed, go to the shop for medicine and catnip."
)
elif cat.sick:
print(f"{cat.name} is sick, go to the shop to get medicine!")
elif cat.depressed:
print(f"{cat.name} is depressed, head to the shop for catnip.")
while True:
match ui.select(
"Please choose an option",
@@ -217,22 +223,28 @@ def house(cat: Cat):
],
):
case "Check on your cat":
if not cat.sick:
print(
f"{cat.name} - a {cat.traits["size"]} {cat.traits["color"]} with {cat.traits["eyes"]} eyes."
)
print(f"Happiness: {round(cat.happiness,1)}%")
print(f"Fullness: {round(cat.fullness,1)}/100")
print(f"You have ${cat.money}.")
else:
print(f"{cat.name} is still sick! Go to the shop to get medicine!")
print(
f"{cat.name} - a{" sick" if cat.sick else ""}{" and" if cat.sick and cat.depressed else ""}{" depressed" if cat.depressed else ""} {cat.traits["size"]} {cat.traits["color"]} with {cat.traits["eyes"]} eyes."
)
print(f"Happiness: {round(cat.happiness,1)}%")
print(f"Fullness: {round(cat.fullness,1)}/100")
print(f"You have ${cat.money}.")
case "Pet your cat":
if not cat.sick:
if not cat.sick and not cat.depressed:
pet(cat)
else:
print(
f"{cat.name} is too sick for pets, go to the shop for medicine!"
)
if cat.depressed and cat.sick:
print(
f"{cat.name} is too sick and depressed for pets. Go to the shop to get medicine and catnip."
)
elif cat.sick:
print(
f"{cat.name} is too sick for pets, go to the shop for medicine!"
)
elif cat.depressed:
print(
f"{cat.name} is too depressed for pets. Go to the shop for catnip."
)
case "Feed your cat":
if not cat.sick:
feed(cat)