neelthee-mansion 3.16.13__py3-none-any.whl → 3.16.14__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.
@@ -792,15 +792,28 @@ def search_container(player: PC, Container):
792
792
  def handle_put_command(player: PC, *Args):
793
793
  arguments = " ".join(Args)
794
794
  Arguments = arguments.split("in")
795
- for arg in Arguments:
796
- Arguments[Arguments.index(arg)] = arg.strip()
797
- PutItem = player.inventory[player.inventory.index(Arguments[0])]
798
- Container = Arguments[1]
799
- if PutItem in player.inventory:
800
- if 'containers' in ROOMS[player.CURRENTROOM]:
801
- put_in_container(player, player.inventory[player.inventory.index(PutItem)], Container)
802
- return
803
- type_text(f"You cannot put the {PutItem.name} in the {Container}", colorTrue=color_coding)
795
+
796
+ # Ensure we have exactly two parts
797
+ if len(Arguments) < 2:
798
+ type_text("You need to specify an item and where to put it (e.g., 'put book in drawer').", colorTrue=color_coding)
799
+ return
800
+
801
+ # Strip whitespace
802
+ Arguments = [arg.strip() for arg in Arguments]
803
+ item_name = Arguments[0]
804
+ container_name = Arguments[1]
805
+
806
+ # Check if item is in inventory
807
+ if item_name not in [item.name for item in player.inventory]:
808
+ type_text(f"You don't have {item_name} in your inventory.", colorTrue=color_coding)
809
+ return
810
+
811
+ # Retrieve item and container
812
+ PutItem = player.inventory[[item.name for item in player.inventory].index(item_name)]
813
+ if 'containers' in ROOMS[player.CURRENTROOM]:
814
+ put_in_container(player, PutItem, container_name)
815
+ else:
816
+ type_text(f"You cannot put the {PutItem.name} in the {container_name}", colorTrue=color_coding)
804
817
 
805
818
 
806
819
  def put_in_container(player: PC, PutItem = None, container = None):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.16.13
3
+ Version: 3.16.14
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=7jBS6lRqQ6DCTpbPN365lRoGnZdjU2b438gmcMkFnOc,25591
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=63DCwdYmpODuqAHQX4uWbdQQSaA1-yUPk3BZs4cTm-g,46344
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=3l3UN6YwUVqfmGRGktogd6T023MmHdFFBJtgNNzLoRo,46784
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.16.13.dist-info/METADATA,sha256=W4Owp_m4BDPIi5DilQgmG0N51qPGunS9tQJkZdMlBtQ,1993
12
- neelthee_mansion-3.16.13.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
- neelthee_mansion-3.16.13.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
- neelthee_mansion-3.16.13.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
- neelthee_mansion-3.16.13.dist-info/RECORD,,
11
+ neelthee_mansion-3.16.14.dist-info/METADATA,sha256=8EjUus21h0OwKU2MndrexTKmkM06UVkl1FRDCsG-Z2U,1993
12
+ neelthee_mansion-3.16.14.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
+ neelthee_mansion-3.16.14.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
+ neelthee_mansion-3.16.14.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
+ neelthee_mansion-3.16.14.dist-info/RECORD,,