neelthee-mansion 3.22.2__tar.gz → 3.22.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/PKG-INFO +1 -1
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Mansion_of_Amnesia.py +18 -18
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/PKG-INFO +1 -1
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/setup.py +1 -1
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/LICENSE.md +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/README.md +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Books.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Rooms.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/creatures.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/setup.cfg +0 -0
@@ -16,7 +16,7 @@ GameState = {
|
|
16
16
|
Neel-thee's Mansion of Amnesia
|
17
17
|
"""
|
18
18
|
|
19
|
-
global player, evil_mage, commands, NOTE_NUM, credits, color_coding, quest_manager, revealer, CHARACTERSLIST, BACKGROUNDS
|
19
|
+
global player, evil_mage, commands, NOTE_NUM, credits, color_coding, quest_manager, revealer, CHARACTERSLIST, BACKGROUNDS, player_info_label, player_info_root
|
20
20
|
|
21
21
|
BACKGROUNDS = {
|
22
22
|
"Adventurer": ["survival", "climbing"],
|
@@ -406,23 +406,23 @@ def get_inventory_text():
|
|
406
406
|
return f'\nInventory: \033[34m{", ".join(the_inventory)}\033[0m; Money: {player.money}; XP: {player.xp}; Level: {player.Level}'
|
407
407
|
|
408
408
|
def show_player_info():
|
409
|
-
global
|
410
|
-
|
411
|
-
|
409
|
+
global player_info_label, player_info_root
|
410
|
+
player_info_root = tk.Tk()
|
411
|
+
player_info_root.title("Player Info")
|
412
412
|
|
413
413
|
info_text = get_inventory_text()
|
414
|
-
|
415
|
-
|
414
|
+
player_info_label = tk.Label(player_info_root, text=info_text)
|
415
|
+
player_info_label.pack()
|
416
416
|
|
417
|
-
update_button = tk.Button(
|
417
|
+
update_button = tk.Button(player_info_root, text="Update Info", command=update_player_info)
|
418
418
|
update_button.pack()
|
419
419
|
|
420
|
-
|
420
|
+
player_info_root.mainloop()
|
421
421
|
|
422
422
|
def update_player_info():
|
423
|
-
global
|
423
|
+
global player_info_root, player_info_label
|
424
424
|
info_text = get_inventory_text()
|
425
|
-
|
425
|
+
player_info_root.after(0, lambda: player_info_label.config(text=info_text))
|
426
426
|
|
427
427
|
def start_tkinter_thread():
|
428
428
|
thread = threading.Thread(target=show_player_info)
|
@@ -779,8 +779,8 @@ def select_target(chooser, targets: list):
|
|
779
779
|
|
780
780
|
|
781
781
|
def command():
|
782
|
-
|
783
|
-
try:
|
782
|
+
global player
|
783
|
+
#try:
|
784
784
|
ShouldBreak = False
|
785
785
|
|
786
786
|
while True:
|
@@ -811,12 +811,12 @@ def command():
|
|
811
811
|
ShouldBreak = True
|
812
812
|
if ShouldBreak:
|
813
813
|
return
|
814
|
-
except KeyError as e:
|
815
|
-
|
816
|
-
except ValueError as e:
|
817
|
-
|
818
|
-
except Exception as e:
|
819
|
-
|
814
|
+
#except KeyError as e:
|
815
|
+
# type_text(f"KeyError: {e} - This might be due to an undefined command or incorrect arguments.", colorTrue=color_coding)
|
816
|
+
#except ValueError as e:
|
817
|
+
# type_text(f"ValueError: {e} - This might be due to incorrect arguments provided.", colorTrue=color_coding)
|
818
|
+
#except Exception as e:
|
819
|
+
# type_text(f"Unexpected Error: {e}", colorTrue=color_coding)
|
820
820
|
|
821
821
|
|
822
822
|
def handle_sleep_command(player: PC):
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name="neelthee_mansion",
|
5
|
-
version="3.22.
|
5
|
+
version="3.22.4", # Update version number for each release
|
6
6
|
packages=find_packages(), # Automatically finds all packages and modules
|
7
7
|
install_requires=[
|
8
8
|
"wheel",
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/dependency_links.txt
RENAMED
File without changes
|
{neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/entry_points.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|