UUID Tracking, and some other minor things

This commit is contained in:
2026-04-27 17:58:30 -04:00
parent 653fcd7034
commit 26ffc55d68
6 changed files with 65 additions and 5 deletions

View File

@@ -3,6 +3,7 @@ import json
import data.save
import systems.ui # should cause circular import but doesn't, so not fixing it
import data.text
import data.cat
def fix_hash(current_cat):
@@ -23,15 +24,50 @@ def fix_hash(current_cat):
json.dump(currentjson, f)
def debug_menu(current_cat):
def debug_menu(current_cat: data.cat.Cat):
print("hi")
while True:
match systems.ui.select(
"choose ur way of breaking the game",
["Breakpoint", "Fix hash", "Debug settings", "Back"],
[
"Breakpoint",
"Fix hash",
"Remove depression and sickness and max out both",
"FREE MONEY!!!",
"Instantly quit the game without saving",
"Debug settings",
"Back",
],
hide_debug=True,
):
case "Remove depression and sickness and max out both":
current_cat.depressed = False
current_cat.sick = False
current_cat.happiness = 100
current_cat.fullness = 100
print("Done")
case "FREE MONEY!!!":
print(f"You have ${current_cat.money} right now.")
try:
current_cat.money = (
int(
systems.ui.text(
"Enter the amount of money to SET the money to, not add, SET:"
)
)
or current_cat.money
)
except:
print("wat")
case "Instantly quit the game without saving":
exec(
"instantly quit the game without saving"
) # i mean, i quit it, what more do you want?
case "Breakpoint":
print(
"In this context, the cat is not cat or self.cat, use current_cat instead."
)
print("DON'T TYPE EXIT! Instead run 'c' as code.")
breakpoint()
case "Fix hash":
fix_hash(current_cat)