3 Commits

Author SHA1 Message Date
5aa8d6beb3 Telnet thing 2026-04-29 17:15:37 -04:00
3d130ecdd5 fix bug on desktop 2026-04-29 17:09:21 -04:00
1a95ae57b1 idea i wrote 2026-04-27 19:24:19 -04:00

15
game.py
View File

@@ -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
@@ -135,6 +141,9 @@ class Game:
def run(self): def run(self):
title() title()
if os.path.exists("WEB_VERSION"): if os.path.exists("WEB_VERSION"):
print(
"If you're on telnet, pretend that everything that says web version says telnet version, I'm too lazy to fix it."
)
print( print(
f"This is a web version of {data.text.GAME_NAME}, here is some important info. To anyone outside of Germany, this game is running on a cheap VPS I got, the company didn't have any US locations available, so I had to get a Germany one, sorry for the high ping (I also have to deal with it, I'm in the US)\nPls don't hack this" f"This is a web version of {data.text.GAME_NAME}, here is some important info. To anyone outside of Germany, this game is running on a cheap VPS I got, the company didn't have any US locations available, so I had to get a Germany one, sorry for the high ping (I also have to deal with it, I'm in the US)\nPls don't hack this"
) )
@@ -173,7 +182,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")