more bugfixing
This commit is contained in:
parent
730e3d604d
commit
7a8f525d1b
1 changed files with 7 additions and 5 deletions
12
setage.py
12
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:
|
||||
|
|
Loading…
Reference in a new issue