neelthee-mansion 3.24.6__py3-none-any.whl → 3.24.8__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 +6 -11
- {neelthee_mansion-3.24.6.dist-info → neelthee_mansion-3.24.8.dist-info}/METADATA +1 -1
- {neelthee_mansion-3.24.6.dist-info → neelthee_mansion-3.24.8.dist-info}/RECORD +7 -7
- {neelthee_mansion-3.24.6.dist-info → neelthee_mansion-3.24.8.dist-info}/LICENSE.md +0 -0
- {neelthee_mansion-3.24.6.dist-info → neelthee_mansion-3.24.8.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.24.6.dist-info → neelthee_mansion-3.24.8.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.24.6.dist-info → neelthee_mansion-3.24.8.dist-info}/top_level.txt +0 -0
@@ -167,21 +167,17 @@ def End(text: str, win: bool = True):
|
|
167
167
|
if win:
|
168
168
|
add_text_to_textbox(info_text_area, "Do you want to leave the game? Y/N")
|
169
169
|
while True:
|
170
|
-
leave = loop_til_valid_input("", ).
|
171
|
-
if leave
|
170
|
+
leave = loop_til_valid_input("Do you want to leave the game? Y/N:", "Please enter Y or N:", Y_N).value
|
171
|
+
if not leave:
|
172
172
|
add_text_to_textbox(info_text_area, "You decide to continue exploring.")
|
173
173
|
break
|
174
|
-
elif leave
|
174
|
+
elif leave:
|
175
175
|
add_text_to_textbox(info_text_area,
|
176
176
|
"You escaped the house... %*BOLD*%GAME OVER, YOU WIN!",
|
177
177
|
)
|
178
178
|
commands["quit"]()
|
179
|
-
else:
|
180
|
-
add_text_to_textbox(info_text_area,
|
181
|
-
"Sorry, that wasn't 'y' or 'n'. Please enter 'y' or 'n'.",
|
182
|
-
)
|
183
179
|
else:
|
184
|
-
|
180
|
+
type_text("%*BOLD*%GAME OVER, YOU LOSE!")
|
185
181
|
commands["quit"]()
|
186
182
|
|
187
183
|
|
@@ -242,8 +238,7 @@ def Use_quill():
|
|
242
238
|
|
243
239
|
if all(item in player.inventory for item in ["ink-pot", "parchment", "quill"]):
|
244
240
|
parchment_index = player.inventory.index("parchment")
|
245
|
-
|
246
|
-
write = str(input(">")).strip()
|
241
|
+
write = loop_til_valid_input("What do you want to write:", "Please enter a string:", str).strip()
|
247
242
|
|
248
243
|
if write:
|
249
244
|
add_note(write, parchment_index)
|
@@ -790,7 +785,7 @@ def select_target(chooser, targets: list):
|
|
790
785
|
# Prompt the player to select a target
|
791
786
|
while True:
|
792
787
|
try:
|
793
|
-
choice =
|
788
|
+
choice = loop_til_valid_input("Enter the number of the target:", "Please enter a hole number:", int) - 1
|
794
789
|
if choice in valid_targets:
|
795
790
|
return targets[choice]
|
796
791
|
else:
|
@@ -1,5 +1,5 @@
|
|
1
1
|
neelthee_mansion/Books.py,sha256=Zs6GOi12vrikne-E37LdrLNRb6CyUogOCDApDGFj6Ls,26168
|
2
|
-
neelthee_mansion/Mansion_of_Amnesia.py,sha256=
|
2
|
+
neelthee_mansion/Mansion_of_Amnesia.py,sha256=7aT_1WXkWIUpz7oduFNb6xS8fV8rSMMPRaBBrNRW_aQ,53653
|
3
3
|
neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
|
4
4
|
neelthee_mansion/Rooms.py,sha256=5m1GrFNhXJMBzw2zaXM6FUt497BIoJi9BfRFvdhsy_g,79218
|
5
5
|
neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -8,9 +8,9 @@ neelthee_mansion/all_game_utils.py,sha256=4fdgJIq0_YAh4AoUI-Di-F7ces2McAjkmT0jXz
|
|
8
8
|
neelthee_mansion/creatures.py,sha256=XdRM5DJSnjAKXn4QskXKBf_YGvov26fX3XU1E2ww0zg,19722
|
9
9
|
neelthee_mansion/items.py,sha256=aGEkNUROf4WuLdsmoFYD-0BbJ984SODt73-8-_F1Z9Y,6672
|
10
10
|
neelthee_mansion/utils.py,sha256=rAiLfyDEg65lCJqQhUbunGduynv5oTbXvBpl9yJ9tgw,14800
|
11
|
-
neelthee_mansion-3.24.
|
12
|
-
neelthee_mansion-3.24.
|
13
|
-
neelthee_mansion-3.24.
|
14
|
-
neelthee_mansion-3.24.
|
15
|
-
neelthee_mansion-3.24.
|
16
|
-
neelthee_mansion-3.24.
|
11
|
+
neelthee_mansion-3.24.8.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
|
12
|
+
neelthee_mansion-3.24.8.dist-info/METADATA,sha256=W223zgwMeA4RawOw3bfHnAfHVaTpQlF3i3SvP7BrMm8,1756
|
13
|
+
neelthee_mansion-3.24.8.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
|
14
|
+
neelthee_mansion-3.24.8.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
15
|
+
neelthee_mansion-3.24.8.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
16
|
+
neelthee_mansion-3.24.8.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|