neelthee-mansion 3.17.1__py3-none-any.whl → 3.17.2__py3-none-any.whl

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.
@@ -678,8 +678,8 @@ def select_target(chooser, targets: list):
678
678
 
679
679
 
680
680
  def command():
681
- global player
682
- #try:
681
+ global player
682
+ try:
683
683
  ShouldBreak = False
684
684
 
685
685
  while True:
@@ -707,12 +707,12 @@ def command():
707
707
  ShouldBreak = True
708
708
  if ShouldBreak:
709
709
  return
710
- #except KeyError as e:
711
- # type_text(f"KeyError: {e} - This might be due to an undefined command or incorrect arguments.", colorTrue=color_coding)
712
- #except ValueError as e:
713
- # type_text(f"ValueError: {e} - This might be due to incorrect arguments provided.", colorTrue=color_coding)
714
- #except Exception as e:
715
- # type_text(f"Unexpected Error: {e}", colorTrue=color_coding)
710
+ except KeyError as e:
711
+ type_text(f"KeyError: {e} - This might be due to an undefined command or incorrect arguments.", colorTrue=color_coding)
712
+ except ValueError as e:
713
+ type_text(f"ValueError: {e} - This might be due to incorrect arguments provided.", colorTrue=color_coding)
714
+ except Exception as e:
715
+ type_text(f"Unexpected Error: {e}", colorTrue=color_coding)
716
716
 
717
717
  def handle_sleep_command(player: PC):
718
718
  type_text("You decide to rest for a while.", colorTrue=color_coding)
@@ -739,7 +739,8 @@ def handle_go_command(direction):
739
739
  global player
740
740
  Move(direction)
741
741
 
742
- def handle_get_command(player: PC, item_name):
742
+ def handle_get_command(player: PC, Args):
743
+ item_name = " ".join(Args)
743
744
  if "item" in ROOMS[player.CURRENTROOM] and item_name == ROOMS[player.CURRENTROOM]['item'].name:
744
745
  player.inventory_add([ROOMS[player.CURRENTROOM]['item']])
745
746
  del ROOMS[player.CURRENTROOM]['item']
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.17.1
3
+ Version: 3.17.2
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
@@ -1,5 +1,5 @@
1
1
  neelthee_mansion/Books.py,sha256=P608nxbspB5wnGTKjK6ATrb4p-rCvfOxjwJ1O5tMhjY,25595
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=BCR045kWISz4NPq7iwcYDo-sqlX9i0GdqdmhocvBseE,46564
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=lOfPmCCMmkdGvq7eF-WtEHiDzgZn6O2lMZttPp_G1ls,46580
3
3
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
4
4
  neelthee_mansion/Rooms.py,sha256=DuPkR0a0dC6jB3_Ebh1U88sJ9XND77xup1z6CulUxTc,90157
5
5
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
@@ -8,8 +8,8 @@ neelthee_mansion/all_game_utils.py,sha256=mnxws_YEnsoftkkBMZv1k_zlnGKWGenUvsZnNK
8
8
  neelthee_mansion/creatures.py,sha256=nc-6YQ7S89teDiypJdHKLLuq-q3UpbQCVGfJ4hnCb7M,15600
9
9
  neelthee_mansion/items.py,sha256=HTy9BhHWB0T_S53HFls0y6ER5jD7XAeI6PlY1ZnCZug,5711
10
10
  neelthee_mansion/utils.py,sha256=Wt1CdK4eCskrxRXkeKgzVoa_NIzwQ047dJU-b_e8pb8,13559
11
- neelthee_mansion-3.17.1.dist-info/METADATA,sha256=Mvc8EKbkzM4osvE3Lo711OVTNvTNQukBJtBqG0CV3uo,1992
12
- neelthee_mansion-3.17.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
- neelthee_mansion-3.17.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
- neelthee_mansion-3.17.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
- neelthee_mansion-3.17.1.dist-info/RECORD,,
11
+ neelthee_mansion-3.17.2.dist-info/METADATA,sha256=CtKge-Rlmn7D61NZrgIXFqxmhzCL3S57aJmr1UP2ipM,1992
12
+ neelthee_mansion-3.17.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
+ neelthee_mansion-3.17.2.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
+ neelthee_mansion-3.17.2.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
+ neelthee_mansion-3.17.2.dist-info/RECORD,,