neelthee-mansion 3.18.2__py3-none-any.whl → 3.18.4__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.
@@ -243,22 +243,23 @@ def Use_note(note_number):
243
243
  type_text('You do not have that note', colorTrue=color_coding)
244
244
 
245
245
 
246
- def Use(moveone, movetwo=None):
246
+ def Use(*Args):
247
247
  global player
248
+ Item = " ".join(Args)
248
249
  """Uses an item from the player's inventory."""
249
- if moveone in player.inventory:
250
- item_obj = player.inventory[player.inventory.index(moveone)]
250
+ if Item in player.inventory:
251
+ item_obj = player.inventory[player.inventory.index(Item)]
251
252
  if isinstance(item_obj, item):
252
253
  if item_obj.sell(player):
253
- type_text(f"You sell the %*BLUE*%{moveone}%*RESET*%", colorTrue=color_coding)
254
+ type_text(f"You sell the %*BLUE*%{Item}%*RESET*%", colorTrue=color_coding)
254
255
  player.inventory.remove(item_obj.name)
255
- elif moveone == 'quill':
256
+ elif Item == 'quill':
256
257
  Use_quill()
257
- elif moveone == 'grappling-hook':
258
+ elif Item == 'grappling-hook':
258
259
  Use_grappling_hook()
259
- elif moveone == 'note' and movetwo:
260
- Use_note(movetwo)
261
- elif moveone == '0':
260
+ elif Item[0] == 'note' and Item[1]:
261
+ Use_note(Item[1])
262
+ elif Item == '0':
262
263
  type_text("You can't use nothing", colorTrue=color_coding)
263
264
  else:
264
265
  type_text("You can't use that", colorTrue=color_coding)
@@ -742,7 +743,7 @@ def handle_go_command(direction):
742
743
  def handle_get_command(player: PC, *Args):
743
744
  item_name = " ".join(Args)
744
745
  for ItemName in ROOMS[player.CURRENTROOM]['items'].keys():
745
- if "item" in ROOMS[player.CURRENTROOM] and item_name == ItemName:
746
+ if item_name == ItemName:
746
747
  player.inventory_add([ROOMS[player.CURRENTROOM]['items'][ItemName]])
747
748
  del ROOMS[player.CURRENTROOM]['items'][ItemName]
748
749
  type_text(f'%*BLUE*%{item_name}%*RESET*% got!', colorTrue=color_coding)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.18.2
3
+ Version: 3.18.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
@@ -1,5 +1,5 @@
1
1
  neelthee_mansion/Books.py,sha256=P608nxbspB5wnGTKjK6ATrb4p-rCvfOxjwJ1O5tMhjY,25595
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=SmV46Wek18EeNBuXQo1BeQoSRHlVFEVMjp5hCWvD-aU,46675
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=eGEPWHf3jhEkXM0_DT2bCZm8MZJ66WzCt3qHWOY-oCI,46628
3
3
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
4
4
  neelthee_mansion/Rooms.py,sha256=i6PjEPaa_OXtCGnaHMLhTdDmAsdhaMKujKtvn7QhZJI,90222
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.18.2.dist-info/METADATA,sha256=3MRf2UcuPVkpXG4THN61bYiQqIprdZRqWC3s4I-DJ2I,1992
12
- neelthee_mansion-3.18.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
- neelthee_mansion-3.18.2.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
- neelthee_mansion-3.18.2.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
- neelthee_mansion-3.18.2.dist-info/RECORD,,
11
+ neelthee_mansion-3.18.4.dist-info/METADATA,sha256=UUrUsK2wJVuuCQvlf2ODxVxxSXlsgjO-nGdbyTMnHjk,1992
12
+ neelthee_mansion-3.18.4.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
+ neelthee_mansion-3.18.4.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
+ neelthee_mansion-3.18.4.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
+ neelthee_mansion-3.18.4.dist-info/RECORD,,