neelthee-mansion 3.17.2__py3-none-any.whl → 3.18.0__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.
@@ -739,20 +739,21 @@ def handle_go_command(direction):
739
739
  global player
740
740
  Move(direction)
741
741
 
742
- def handle_get_command(player: PC, Args):
742
+ def handle_get_command(player: PC, *Args):
743
743
  item_name = " ".join(Args)
744
- if "item" in ROOMS[player.CURRENTROOM] and item_name == ROOMS[player.CURRENTROOM]['item'].name:
745
- player.inventory_add([ROOMS[player.CURRENTROOM]['item']])
746
- del ROOMS[player.CURRENTROOM]['item']
747
- type_text(f'%*BLUE*%{item_name}%*RESET*% got!', colorTrue=color_coding)
748
- else:
749
- type_text(f"Can't get {item_name}!", colorTrue=color_coding)
744
+ for ItemName in ROOMS[player.CURRENTROOM]['items'].Keys():
745
+ if "item" in ROOMS[player.CURRENTROOM] and item_name == ItemName:
746
+ player.inventory_add([ROOMS[player.CURRENTROOM]['items'][ItemName]])
747
+ del ROOMS[player.CURRENTROOM]['items'][ItemName]
748
+ type_text(f'%*BLUE*%{item_name}%*RESET*% got!', colorTrue=color_coding)
749
+ return
750
+ type_text(f"Can't get {item_name}!", colorTrue=color_coding)
750
751
 
751
752
  def handle_look_command():
752
753
  global player
753
754
  should_return = False
754
755
  if 'item' in ROOMS[player.CURRENTROOM]:
755
- type_text(f'The item in the room: %*BLUE*%{ROOMS[player.CURRENTROOM]["item"].name}%*RESET*%.', colorTrue=color_coding)
756
+ type_text(f'The items in the room: %*BLUE*%{", ".join(ROOMS[player.CURRENTROOM]["items"].keys())}%*RESET*%.', colorTrue=color_coding)
756
757
  should_return = True
757
758
  if 'containers' in ROOMS[player.CURRENTROOM]:
758
759
  type_text(f"The containers here are: %*RED*%{', '.join(ROOMS[player.CURRENTROOM]['containers'].keys())}%*RESET*%", colorTrue=color_coding)
neelthee_mansion/Rooms.py CHANGED
@@ -156,7 +156,9 @@ ROOMS = {
156
156
  'up': Door('Landing'),
157
157
  'easter': Door('Cavegame'),
158
158
  },
159
- 'item': item('torch'),
159
+ 'items': {
160
+ 'torch': item('torch'),
161
+ },
160
162
  'containers': {
161
163
  'drawers': container([]),
162
164
  },
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.17.2
3
+ Version: 3.18.0
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,15 +1,15 @@
1
1
  neelthee_mansion/Books.py,sha256=P608nxbspB5wnGTKjK6ATrb4p-rCvfOxjwJ1O5tMhjY,25595
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=lOfPmCCMmkdGvq7eF-WtEHiDzgZn6O2lMZttPp_G1ls,46580
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=d4WeZELhF3Mce4nlyYt-nxQkNNlEJMFxiAad7c9vugQ,46673
3
3
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
4
- neelthee_mansion/Rooms.py,sha256=DuPkR0a0dC6jB3_Ebh1U88sJ9XND77xup1z6CulUxTc,90157
4
+ neelthee_mansion/Rooms.py,sha256=i6PjEPaa_OXtCGnaHMLhTdDmAsdhaMKujKtvn7QhZJI,90222
5
5
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
7
7
  neelthee_mansion/all_game_utils.py,sha256=mnxws_YEnsoftkkBMZv1k_zlnGKWGenUvsZnNKjuFJQ,349
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.2.dist-info/METADATA,sha256=CtKge-Rlmn7D61NZrgIXFqxmhzCL3S57aJmr1UP2ipM,1992
12
- neelthee_mansion-3.17.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
- neelthee_mansion-3.17.2.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
- neelthee_mansion-3.17.2.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
- neelthee_mansion-3.17.2.dist-info/RECORD,,
11
+ neelthee_mansion-3.18.0.dist-info/METADATA,sha256=tmIdPRe3PCbzF7wLsEiTR-wdF6X9UDKilVoHydSq_Co,1992
12
+ neelthee_mansion-3.18.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
13
+ neelthee_mansion-3.18.0.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
14
+ neelthee_mansion-3.18.0.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
15
+ neelthee_mansion-3.18.0.dist-info/RECORD,,