neelthee-mansion 3.16.9__py3-none-any.whl → 3.16.11__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 +19 -17
- {neelthee_mansion-3.16.9.dist-info → neelthee_mansion-3.16.11.dist-info}/METADATA +1 -1
- {neelthee_mansion-3.16.9.dist-info → neelthee_mansion-3.16.11.dist-info}/RECORD +6 -6
- {neelthee_mansion-3.16.9.dist-info → neelthee_mansion-3.16.11.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.16.9.dist-info → neelthee_mansion-3.16.11.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.16.9.dist-info → neelthee_mansion-3.16.11.dist-info}/top_level.txt +0 -0
@@ -125,7 +125,7 @@ go [%*GREEN*%direction%*RESET*%/%*GREEN*%teleport%*RESET*%/%*GREEN*%number%*RESE
|
|
125
125
|
get [%*BLUE*%item%*RESET*%] - Pick up an item from your current location
|
126
126
|
search [the/] [%*RED*%container%*RESET*%] - Search a container in your current location
|
127
127
|
use [%*BLUE*%item%*RESET*%] - Use an item from your inventory
|
128
|
-
put [%*BLUE*%item%*RESET*%] [
|
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
|
130
130
|
sleep - Rest for a bit and regain some health
|
131
131
|
look - Look around your current location
|
@@ -678,8 +678,8 @@ def select_target(chooser, targets: list):
|
|
678
678
|
|
679
679
|
|
680
680
|
def command():
|
681
|
-
|
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
|
-
|
712
|
-
except ValueError as e:
|
713
|
-
|
714
|
-
except Exception as e:
|
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)
|
@@ -789,16 +789,18 @@ def search_container(player: PC, Container):
|
|
789
789
|
Container.take_contents(player)
|
790
790
|
|
791
791
|
|
792
|
-
def handle_put_command(player: PC,
|
792
|
+
def handle_put_command(player: PC, *Args):
|
793
|
+
arguments = " ".join(Args)
|
794
|
+
Arguments = arguments.split("in")
|
795
|
+
for arg in Arguments:
|
796
|
+
Arguments[Arguments.index(arg)] = arg.strip()
|
797
|
+
PutItem = Arguments[0]
|
798
|
+
Container = Arguments[1]
|
793
799
|
if PutItem in player.inventory:
|
794
800
|
if 'containers' in ROOMS[player.CURRENTROOM]:
|
795
|
-
|
796
|
-
|
797
|
-
|
798
|
-
elif container in ROOMS[player.CURRENTROOM]['containers']:
|
799
|
-
put_in_container(player, player.inventory[player.inventory.index(PutItem)], container)
|
800
|
-
return
|
801
|
-
type_text(f"You cannot put the {PutItem.name} in the {container}", colorTrue=color_coding)
|
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)
|
802
804
|
|
803
805
|
|
804
806
|
def put_in_container(player: PC, PutItem = None, container = None):
|
@@ -1,5 +1,5 @@
|
|
1
1
|
neelthee_mansion/Books.py,sha256=7jBS6lRqQ6DCTpbPN365lRoGnZdjU2b438gmcMkFnOc,25591
|
2
|
-
neelthee_mansion/Mansion_of_Amnesia.py,sha256=
|
2
|
+
neelthee_mansion/Mansion_of_Amnesia.py,sha256=UPfRXjszjHSyzUjSrP_CZfI_zJczbJEkHAb3xJFFX9g,46302
|
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=rfbyQ-2-MP-LCXKHRyimy-0fFFLmVYZWZcKyCCloF_M,5644
|
10
10
|
neelthee_mansion/utils.py,sha256=Wt1CdK4eCskrxRXkeKgzVoa_NIzwQ047dJU-b_e8pb8,13559
|
11
|
-
neelthee_mansion-3.16.
|
12
|
-
neelthee_mansion-3.16.
|
13
|
-
neelthee_mansion-3.16.
|
14
|
-
neelthee_mansion-3.16.
|
15
|
-
neelthee_mansion-3.16.
|
11
|
+
neelthee_mansion-3.16.11.dist-info/METADATA,sha256=TyDyEv_P0Zg79EwxMNHdN6wyc7EYZHalsdylu5gI7u8,1993
|
12
|
+
neelthee_mansion-3.16.11.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
13
|
+
neelthee_mansion-3.16.11.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
14
|
+
neelthee_mansion-3.16.11.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
15
|
+
neelthee_mansion-3.16.11.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|