Simple food and debug bugfix

This commit is contained in:
2026-04-12 17:21:56 -04:00
parent 7111c6220d
commit c92699888e
3 changed files with 17 additions and 5 deletions

View File

@@ -75,10 +75,11 @@ class Game:
if os.path.exists("ENABLE DEBUG"):
with open("ENABLE DEBUG", "r") as f:
file = f.read().strip()
self.cat = data.save.load(file)
self.game_loop()
print(f"{self.cat.name} says bye")
return
if file:
self.cat = data.save.load(file)
self.game_loop()
print(f"{self.cat.name} says bye")
return
title()
options = ["New Game", "Quit"]
if os.path.exists("saves"):