Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 3d130ecdd5 | |||
| 1a95ae57b1 | |||
| 1643fb93d0 |
@@ -111,6 +111,7 @@ def load(
|
|||||||
if os.path.exists("WEB_VERSION"):
|
if os.path.exists("WEB_VERSION"):
|
||||||
if not hide_web_message:
|
if not hide_web_message:
|
||||||
print("Loading is disabled.")
|
print("Loading is disabled.")
|
||||||
|
return None
|
||||||
punished = False
|
punished = False
|
||||||
data_dir = get_data_dir()
|
data_dir = get_data_dir()
|
||||||
hash_path = os.path.join(data_dir, "dont hurt cats.json")
|
hash_path = os.path.join(data_dir, "dont hurt cats.json")
|
||||||
|
|||||||
12
game.py
12
game.py
@@ -79,6 +79,12 @@ class Game:
|
|||||||
self.game_loop()
|
self.game_loop()
|
||||||
|
|
||||||
def game_loop(self):
|
def game_loop(self):
|
||||||
|
if os.path.exists(
|
||||||
|
"admin_handle.py"
|
||||||
|
): # TODO: make this for specific uuids, like a thing to handle stuff for specific uuids, like give money, but make sure to remove the thing after, and maybe a admin_panel.py to configure a json which admin_handle.py also reads for stuff. i gtg.
|
||||||
|
import admin_handle # type: ignore
|
||||||
|
|
||||||
|
admin_handle.handle(self.cat)
|
||||||
self.cat.apply_decay()
|
self.cat.apply_decay()
|
||||||
self.cat.last_login = time.time()
|
self.cat.last_login = time.time()
|
||||||
ui.current_cat = self.cat
|
ui.current_cat = self.cat
|
||||||
@@ -173,7 +179,11 @@ class Game:
|
|||||||
return
|
return
|
||||||
|
|
||||||
options = ["New Game", "Release Notes", "Credits"]
|
options = ["New Game", "Release Notes", "Credits"]
|
||||||
if os.path.exists("saves") or os.path.exists("WEB_VERSION"):
|
if (
|
||||||
|
os.path.exists("saves")
|
||||||
|
and os.listdir("saves")
|
||||||
|
or os.path.exists("WEB_VERSION")
|
||||||
|
):
|
||||||
options.insert(0, "Load Game")
|
options.insert(0, "Load Game")
|
||||||
if not os.path.exists("WEB_VERSION"):
|
if not os.path.exists("WEB_VERSION"):
|
||||||
options.append("Quit")
|
options.append("Quit")
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ def item_menu(cat: data.cat.Cat, item):
|
|||||||
cat.happiness = 25.0
|
cat.happiness = 25.0
|
||||||
cat.inventory["Catnip"] -= 1
|
cat.inventory["Catnip"] -= 1
|
||||||
print(
|
print(
|
||||||
f"{cat.name} plays with the catnip. {cat.name} is less depressed! They still are still sad though."
|
f"{cat.name} plays with the catnip. {cat.name} is less depressed! They are still sad though."
|
||||||
)
|
)
|
||||||
else:
|
else:
|
||||||
print("You don't have any catnip!")
|
print("You don't have any catnip!")
|
||||||
|
|||||||
Reference in New Issue
Block a user