neelthee-mansion 3.18.3__tar.gz → 3.18.5__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 (20) hide show
  1. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/Mansion_of_Amnesia.py +12 -11
  3. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  4. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/setup.py +1 -1
  5. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/README.md +0 -0
  6. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/Books.py +0 -0
  7. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/Quests.py +0 -0
  8. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/Rooms.py +0 -0
  9. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/__init__.py +0 -0
  10. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/__main__.py +0 -0
  11. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/all_game_utils.py +0 -0
  12. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/creatures.py +0 -0
  13. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/items.py +0 -0
  14. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion/utils.py +0 -0
  15. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  16. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  17. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  18. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion.egg-info/requires.txt +0 -0
  19. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/neelthee_mansion.egg-info/top_level.txt +0 -0
  20. {neelthee_mansion-3.18.3 → neelthee_mansion-3.18.5}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.18.3
3
+ Version: 3.18.5
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
@@ -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 len(Item) >= 2 and 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)
@@ -762,9 +763,9 @@ def handle_look_command():
762
763
  return
763
764
  type_text('There is nothing of interest.', colorTrue=color_coding)
764
765
 
765
- def handle_use_command(item = None, sub_item = None):
766
+ def handle_use_command(*Args):
766
767
  global player
767
- Use(item, sub_item)
768
+ Use(Args)
768
769
 
769
770
  def handle_search_command(player, *Args):
770
771
  Container = " ".join(Args)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.18.3
3
+ Version: 3.18.5
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.18.3',
5
+ version='3.18.5',
6
6
  packages=find_packages(), # Automatically finds all packages and modules
7
7
  install_requires=[
8
8
  'wheel', 'psutil', 'playsound', 'requests', 'keyboard', 'pandas', 'validators', 'dicttoxml', 'pytz',