neelthee-mansion 3.24.6__py3-none-any.whl → 3.24.7__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.
@@ -167,19 +167,15 @@ 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("", ).lower()
171
- if leave == "n":
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 == "y":
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
  add_text_to_textbox(info_text_area, "%*BOLD*%GAME OVER, YOU LOSE!")
185
181
  commands["quit"]()
@@ -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
- add_text_to_textbox(info_text_area, "What do you want to write")
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 = int(input("Enter the number of the target: ")) - 1
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.24.6
3
+ Version: 3.24.7
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,5 +1,5 @@
1
1
  neelthee_mansion/Books.py,sha256=Zs6GOi12vrikne-E37LdrLNRb6CyUogOCDApDGFj6Ls,26168
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=FS5YHcfptxbTmNJHoilzGcV68BWYSKP1GxKGYNIj6H8,53764
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=kjkm2mlnkjJ2IDMIdNItD7itzD1gC2uVH5u3PKu-urU,53679
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.6.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
- neelthee_mansion-3.24.6.dist-info/METADATA,sha256=1QOXzI9Kq4fCA0q3ixNPN6Mdz4HqMej0CA2WAYXTxPE,1756
13
- neelthee_mansion-3.24.6.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
- neelthee_mansion-3.24.6.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
- neelthee_mansion-3.24.6.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
- neelthee_mansion-3.24.6.dist-info/RECORD,,
11
+ neelthee_mansion-3.24.7.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
+ neelthee_mansion-3.24.7.dist-info/METADATA,sha256=rXqTOS9GrRTa-TeiFEzvoR24FOoVRMs_DltN3EyYILk,1756
13
+ neelthee_mansion-3.24.7.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
+ neelthee_mansion-3.24.7.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.24.7.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.24.7.dist-info/RECORD,,