Cancel buy something
This commit is contained in:
@@ -48,7 +48,7 @@ def debug_menu():
|
||||
while True:
|
||||
match select(
|
||||
"choose ur way of breaking the game",
|
||||
["Breakpoint", "Fix hash", "Back"],
|
||||
["Breakpoint", "Fix hash", "Debug settings", "Back"],
|
||||
hide_debug=True,
|
||||
):
|
||||
case "Breakpoint":
|
||||
|
||||
@@ -78,8 +78,10 @@ def shop(cat: Cat):
|
||||
[
|
||||
ui.Choice(title=f"{name} - ${price}", value=name)
|
||||
for name, price in data.text.SHOP_ITEMS.items()
|
||||
],
|
||||
]
|
||||
+ ["Cancel"],
|
||||
)
|
||||
if item != "Cancel":
|
||||
item_price = data.text.SHOP_ITEMS[item]
|
||||
|
||||
if item_price > cat.money:
|
||||
@@ -98,7 +100,6 @@ def shop(cat: Cat):
|
||||
|
||||
# TODO: idea, each item, when selected in house storage menu, call a item menu thing thats specific for each item
|
||||
# TODO: make toy mouse that increases happyness (so also add emotions and sicknesses maybe) but has a 25% chance of getting lost under the couch and makes the cat tired possibly
|
||||
pass
|
||||
case "Leave the shop":
|
||||
print("Goodbye!")
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user