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.
Files changed (21) hide show
  1. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Mansion_of_Amnesia.py +18 -18
  3. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  4. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/setup.py +1 -1
  5. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/LICENSE.md +0 -0
  6. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/README.md +0 -0
  7. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Books.py +0 -0
  8. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Quests.py +0 -0
  9. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/Rooms.py +0 -0
  10. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/__init__.py +0 -0
  11. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/__main__.py +0 -0
  12. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/all_game_utils.py +0 -0
  13. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/creatures.py +0 -0
  14. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/items.py +0 -0
  15. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion/utils.py +0 -0
  16. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  17. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  18. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  19. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/requires.txt +0 -0
  20. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/neelthee_mansion.egg-info/top_level.txt +0 -0
  21. {neelthee_mansion-3.22.2 → neelthee_mansion-3.22.4}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.22.2
3
+ Version: 3.22.4
4
4
  Summary: A text-based adventure game set in Neel-thee’s mansion.
5
5
  Home-page: https://github.com/Flameblade375/neelthee_mansion
6
6
  Author: Alexander.E.F
@@ -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 info_label, root
410
- root = tk.Tk()
411
- root.title("Player Info")
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
- info_label = tk.Label(root, text=info_text)
415
- info_label.pack()
414
+ player_info_label = tk.Label(player_info_root, text=info_text)
415
+ player_info_label.pack()
416
416
 
417
- update_button = tk.Button(root, text="Update Info", command=update_player_info)
417
+ update_button = tk.Button(player_info_root, text="Update Info", command=update_player_info)
418
418
  update_button.pack()
419
419
 
420
- root.mainloop()
420
+ player_info_root.mainloop()
421
421
 
422
422
  def update_player_info():
423
- global root, info_label
423
+ global player_info_root, player_info_label
424
424
  info_text = get_inventory_text()
425
- root.after(0, lambda: info_label.config(text=info_text))
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
- global player
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
- 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)
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):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.22.2
3
+ Version: 3.22.4
4
4
  Summary: A text-based adventure game set in Neel-thee’s mansion.
5
5
  Home-page: https://github.com/Flameblade375/neelthee_mansion
6
6
  Author: Alexander.E.F
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="neelthee_mansion",
5
- version="3.22.2", # Update version number for each release
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",