From 7a8f525d1b9cce17e74e268d23f0618866d64856 Mon Sep 17 00:00:00 2001 From: Cheri Dawn Date: Thu, 23 May 2024 13:01:21 +0300 Subject: [PATCH] more bugfixing --- setage.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/setage.py b/setage.py index dd9ae8d..05e7619 100755 --- a/setage.py +++ b/setage.py @@ -11,7 +11,7 @@ from base64 import b64decode __author__ = "Cheri Dawn" __copyright__ = "Copyright 2024, Cheri Dawn" __license__ = "GPL-3.0-only" -__version__ = "0.4.0.1" +__version__ = "0.4.0.2" __maintainer__ = "Cheri Dawn" __status__ = "Prototype" @@ -148,17 +148,19 @@ class SetageShell(Cmd): manifest["items"][arg]["hidden"] = False if "examine" in manifest["items"][arg]: print(manifest["items"][arg]["examine"]) + return else: print("It doesn't seem to be all that interesting...") + return if "interactables" in cur_room: if arg in cur_room["interactables"].keys(): cur_room["interactables"][arg]["hidden"] = False if "examine" in cur_room["interactables"][arg]: print(cur_room["interactables"][arg]["examine"]) + return else: print("It doesn't seem to be all that interesting...") - else: - print("> I don't see anything like that...") + return else: print("> I don't see anything like that...") @@ -327,8 +329,8 @@ class SetageShell(Cmd): elif inter["times"] == "remove": cur_room = manifest["rooms"][current_room_id] cur_room["interactables"].pop(arg) - if not can_activate: - print("> I can't interact with that...") + else: + print("> I don't seem to be able to do anything with that...") elif arg == "": print("> What should I interact with?") else: