From 48abadce1d004f9d5ce2c1c6b02788abfeb85dc1 Mon Sep 17 00:00:00 2001 From: Cheri Dawn Date: Thu, 23 May 2024 13:25:02 +0300 Subject: [PATCH] even more bugfixing --- setage.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/setage.py b/setage.py index 05e7619..d601a0d 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.2" +__version__ = "0.4.0.3" __maintainer__ = "Cheri Dawn" __status__ = "Prototype" @@ -43,7 +43,9 @@ def print_items(cur_room): return items = cur_room["items"] for k, v in items.items(): - if not manifest["items"][k]["hidden"]: + if k not in manifest["items"]: + print(f"You notice {v} [{k}].") + elif not manifest["items"][k]["hidden"]: print(f"You notice {v} [{k}].")