neelthee-mansion 3.17.0__py3-none-any.whl → 3.17.1__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.
@@ -123,7 +123,7 @@ def showInstructions():
123
123
  Commands:
124
124
  go [%*GREEN*%direction%*RESET*%/%*GREEN*%teleport%*RESET*%/%*GREEN*%number%*RESET*%] - Move to another location
125
125
  get [%*BLUE*%item%*RESET*%] - Pick up an item from your current location
126
- search [the/] [%*RED*%container%*RESET*%] - Search a container in your current location
126
+ search [%*RED*%container%*RESET*%] - Search a container in your current location
127
127
  use [%*BLUE*%item%*RESET*%] - Use an item from your inventory
128
128
  put [%*BLUE*%item%*RESET*%] [in] [%*RED*%container%*RESET*%] - Put an item from your inventory into a container in your current location
129
129
  examine [%*GREEN*%direction%*RESET*%/%*RED*%container%*RESET*%/%*BLUE*%item%*RESET*%] - Find out some info about the object
@@ -764,14 +764,13 @@ def handle_use_command(item = None, sub_item = None):
764
764
  global player
765
765
  Use(item, sub_item)
766
766
 
767
- def handle_search_command(player, container = None, sub_container = None):
767
+ def handle_search_command(player, *Args):
768
+ Container = " ".join(Args)
768
769
  if 'containers' in ROOMS[player.CURRENTROOM]:
769
- if container == 'the' and sub_container in ROOMS[player.CURRENTROOM]['containers'] and not all_same_value(ROOMS[player.CURRENTROOM]['containers'][sub_container].contents, None):
770
- search_container(player, sub_container)
771
- elif container in ROOMS[player.CURRENTROOM]['containers'] and not all_same_value(ROOMS[player.CURRENTROOM]['containers'][container].contents, None):
772
- search_container(player, container)
770
+ if Container in ROOMS[player.CURRENTROOM]['containers'] and not all_same_value(ROOMS[player.CURRENTROOM]['containers'][Container].contents, None):
771
+ search_container(player, Container)
773
772
  else:
774
- type_text(f"You cannot search the {container}", colorTrue=color_coding)
773
+ type_text(f"You cannot search the {Container}", colorTrue=color_coding)
775
774
 
776
775
  def search_container(player: PC, Container):
777
776
  ContainerName = Container
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.17.0
3
+ Version: 3.17.1
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=2JR0QqHOKMffcBq8Hqdl7D9jJeLlTUOmWel8FcuUYt4,46814
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=BCR045kWISz4NPq7iwcYDo-sqlX9i0GdqdmhocvBseE,46564
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.0.dist-info/METADATA,sha256=rqA7RCVuQKSBWlwfiNNtd_YnU4XmET5rD4dMKm1Nr6Y,1992
12
- neelthee_mansion-3.17.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
- neelthee_mansion-3.17.0.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
- neelthee_mansion-3.17.0.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
- neelthee_mansion-3.17.0.dist-info/RECORD,,
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,,