neelthee-mansion 3.16.13__tar.gz → 3.16.15__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.16.13 → neelthee_mansion-3.16.15}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/Books.py +2 -2
  3. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/Mansion_of_Amnesia.py +22 -9
  4. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  5. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/setup.py +1 -1
  6. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/README.md +0 -0
  7. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/Quests.py +0 -0
  8. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/Rooms.py +0 -0
  9. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/__init__.py +0 -0
  10. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/__main__.py +0 -0
  11. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/all_game_utils.py +0 -0
  12. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/creatures.py +0 -0
  13. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/items.py +0 -0
  14. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion/utils.py +0 -0
  15. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  16. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  17. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  18. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion.egg-info/requires.txt +0 -0
  19. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/neelthee_mansion.egg-info/top_level.txt +0 -0
  20. {neelthee_mansion-3.16.13 → neelthee_mansion-3.16.15}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.16.13
3
+ Version: 3.16.15
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
@@ -72,7 +72,7 @@ legend. They called her The Bringer of Light, and in their hearts, her lantern w
72
72
  """
73
73
  ),
74
74
  Book(
75
- "whispers in the wispwood",
75
+ "whispers from the wispwood",
76
76
  """
77
77
  When winter descended upon Wispwood, strange whispers wove through the winds, whispering secrets long since lost. Willow, a wandering soul with a warm heart, wondered why the woods seemed so
78
78
  wild and wary this season. With each wary step, whispers weaved around her like a winding song, words barely heard, yet deeply felt.
@@ -84,7 +84,7 @@ would forever remember the wonder of the well.
84
84
  """
85
85
  ),
86
86
  Book(
87
- "a whisper in the dark",
87
+ "a whisper from the dark",
88
88
  """
89
89
  A soft whisper floated through the darkness, drawing Alina from her restless sleep. A shiver ran down her spine as she strained to listen, her eyes wide, searching the shadows. Around her, the
90
90
  room was empty, save for the faint flicker of a candle casting long, eerie shapes against the walls.
@@ -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.15
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.16.13',
5
+ version='3.16.15',
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',