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.
- neelthee_mansion/Mansion_of_Amnesia.py +9 -8
- neelthee_mansion/Rooms.py +3 -1
- {neelthee_mansion-3.17.2.dist-info → neelthee_mansion-3.18.0.dist-info}/METADATA +1 -1
- {neelthee_mansion-3.17.2.dist-info → neelthee_mansion-3.18.0.dist-info}/RECORD +7 -7
- {neelthee_mansion-3.17.2.dist-info → neelthee_mansion-3.18.0.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.17.2.dist-info → neelthee_mansion-3.18.0.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.17.2.dist-info → neelthee_mansion-3.18.0.dist-info}/top_level.txt +0 -0
@@ -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
|
-
|
745
|
-
|
746
|
-
|
747
|
-
|
748
|
-
|
749
|
-
|
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
|
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
@@ -1,15 +1,15 @@
|
|
1
1
|
neelthee_mansion/Books.py,sha256=P608nxbspB5wnGTKjK6ATrb4p-rCvfOxjwJ1O5tMhjY,25595
|
2
|
-
neelthee_mansion/Mansion_of_Amnesia.py,sha256=
|
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=
|
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.
|
12
|
-
neelthee_mansion-3.
|
13
|
-
neelthee_mansion-3.
|
14
|
-
neelthee_mansion-3.
|
15
|
-
neelthee_mansion-3.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|