neelthee-mansion 3.17.0__tar.gz → 3.17.2__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.17.0 → neelthee_mansion-3.17.2}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/Mansion_of_Amnesia.py +16 -16
  3. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  4. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/setup.py +1 -1
  5. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/README.md +0 -0
  6. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/Books.py +0 -0
  7. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/Quests.py +0 -0
  8. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/Rooms.py +0 -0
  9. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/__init__.py +0 -0
  10. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/__main__.py +0 -0
  11. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/all_game_utils.py +0 -0
  12. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/creatures.py +0 -0
  13. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/items.py +0 -0
  14. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion/utils.py +0 -0
  15. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  16. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  17. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  18. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion.egg-info/requires.txt +0 -0
  19. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/neelthee_mansion.egg-info/top_level.txt +0 -0
  20. {neelthee_mansion-3.17.0 → neelthee_mansion-3.17.2}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.17.0
3
+ Version: 3.17.2
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
@@ -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
@@ -678,8 +678,8 @@ def select_target(chooser, targets: list):
678
678
 
679
679
 
680
680
  def command():
681
- global player
682
- #try:
681
+ global player
682
+ try:
683
683
  ShouldBreak = False
684
684
 
685
685
  while True:
@@ -707,12 +707,12 @@ def command():
707
707
  ShouldBreak = True
708
708
  if ShouldBreak:
709
709
  return
710
- #except KeyError as e:
711
- # type_text(f"KeyError: {e} - This might be due to an undefined command or incorrect arguments.", colorTrue=color_coding)
712
- #except ValueError as e:
713
- # type_text(f"ValueError: {e} - This might be due to incorrect arguments provided.", colorTrue=color_coding)
714
- #except Exception as e:
715
- # type_text(f"Unexpected Error: {e}", colorTrue=color_coding)
710
+ except KeyError as e:
711
+ type_text(f"KeyError: {e} - This might be due to an undefined command or incorrect arguments.", colorTrue=color_coding)
712
+ except ValueError as e:
713
+ type_text(f"ValueError: {e} - This might be due to incorrect arguments provided.", colorTrue=color_coding)
714
+ except Exception as e:
715
+ type_text(f"Unexpected Error: {e}", colorTrue=color_coding)
716
716
 
717
717
  def handle_sleep_command(player: PC):
718
718
  type_text("You decide to rest for a while.", colorTrue=color_coding)
@@ -739,7 +739,8 @@ def handle_go_command(direction):
739
739
  global player
740
740
  Move(direction)
741
741
 
742
- def handle_get_command(player: PC, item_name):
742
+ def handle_get_command(player: PC, Args):
743
+ item_name = " ".join(Args)
743
744
  if "item" in ROOMS[player.CURRENTROOM] and item_name == ROOMS[player.CURRENTROOM]['item'].name:
744
745
  player.inventory_add([ROOMS[player.CURRENTROOM]['item']])
745
746
  del ROOMS[player.CURRENTROOM]['item']
@@ -764,14 +765,13 @@ def handle_use_command(item = None, sub_item = None):
764
765
  global player
765
766
  Use(item, sub_item)
766
767
 
767
- def handle_search_command(player, container = None, sub_container = None):
768
+ def handle_search_command(player, *Args):
769
+ Container = " ".join(Args)
768
770
  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)
771
+ if Container in ROOMS[player.CURRENTROOM]['containers'] and not all_same_value(ROOMS[player.CURRENTROOM]['containers'][Container].contents, None):
772
+ search_container(player, Container)
773
773
  else:
774
- type_text(f"You cannot search the {container}", colorTrue=color_coding)
774
+ type_text(f"You cannot search the {Container}", colorTrue=color_coding)
775
775
 
776
776
  def search_container(player: PC, Container):
777
777
  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.2
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.17.0',
5
+ version='3.17.2',
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',