more bugfixing

This commit is contained in:
Cheri Dawn 2024-05-21 23:18:51 +03:00
parent 8c816a4afb
commit 42d76bce29

View file

@ -123,18 +123,20 @@ class SetageShell(Cmd):
print(manifest["items"][arg]["examine"])
else:
print("It doesn't seem to be all that interesting...")
elif arg in cur_room["items"].keys():
manifest["items"][arg]["hidden"] = False
if "examine" in manifest["items"][arg]:
print(manifest["items"][arg]["examine"])
else:
print("It doesn't seem to be all that interesting...")
elif 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"])
else:
print("It doesn't seem to be all that interesting...")
elif "items" in cur_room:
if arg in cur_room["items"].keys():
manifest["items"][arg]["hidden"] = False
if "examine" in manifest["items"][arg]:
print(manifest["items"][arg]["examine"])
else:
print("It doesn't seem to be all that interesting...")
elif "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"])
else:
print("It doesn't seem to be all that interesting...")
else:
print("> I don't see anything like that...")