neelthee-mansion 3.17.0__py3-none-any.whl → 3.17.2__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 +16 -16
- {neelthee_mansion-3.17.0.dist-info → neelthee_mansion-3.17.2.dist-info}/METADATA +1 -1
- {neelthee_mansion-3.17.0.dist-info → neelthee_mansion-3.17.2.dist-info}/RECORD +6 -6
- {neelthee_mansion-3.17.0.dist-info → neelthee_mansion-3.17.2.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.17.0.dist-info → neelthee_mansion-3.17.2.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.17.0.dist-info → neelthee_mansion-3.17.2.dist-info}/top_level.txt +0 -0
@@ -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 [
|
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
|
-
|
682
|
-
|
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
|
-
|
711
|
-
|
712
|
-
|
713
|
-
|
714
|
-
|
715
|
-
|
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,
|
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,
|
768
|
+
def handle_search_command(player, *Args):
|
769
|
+
Container = " ".join(Args)
|
768
770
|
if 'containers' in ROOMS[player.CURRENTROOM]:
|
769
|
-
if
|
770
|
-
search_container(player,
|
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 {
|
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,5 +1,5 @@
|
|
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=lOfPmCCMmkdGvq7eF-WtEHiDzgZn6O2lMZttPp_G1ls,46580
|
3
3
|
neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
|
4
4
|
neelthee_mansion/Rooms.py,sha256=DuPkR0a0dC6jB3_Ebh1U88sJ9XND77xup1z6CulUxTc,90157
|
5
5
|
neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -8,8 +8,8 @@ neelthee_mansion/all_game_utils.py,sha256=mnxws_YEnsoftkkBMZv1k_zlnGKWGenUvsZnNK
|
|
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.
|
12
|
-
neelthee_mansion-3.17.
|
13
|
-
neelthee_mansion-3.17.
|
14
|
-
neelthee_mansion-3.17.
|
15
|
-
neelthee_mansion-3.17.
|
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,,
|
File without changes
|
File without changes
|
File without changes
|