neelthee-mansion 3.24.2__py3-none-any.whl → 3.24.4__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.
@@ -208,7 +208,7 @@ def Use_grappling_hook():
208
208
  add_text_to_textbox(info_text_area,
209
209
  "You throw your grappling-hook, it catches a branch of a nearby tree and hooks back onto itself. \nYou can swing into the forest!"
210
210
  )
211
- if ask_for_consent("Do you want to swing into the forest"):
211
+ if ask_for_consent("Do you want to swing into the forest", info_text_area):
212
212
  add_text_to_textbox(info_text_area, "You swing into the forest")
213
213
  Move("Forest Clearing")
214
214
  else:
@@ -221,7 +221,7 @@ def Use_grappling_hook():
221
221
  add_text_to_textbox(info_text_area,
222
222
  "You throw your grappling-hook, it catches the railing of the nearby house and hooks back onto itself. \nYou can climb into the house!"
223
223
  )
224
- if ask_for_consent("Do you want to climb into the house"):
224
+ if ask_for_consent("Do you want to climb into the house", info_text_area):
225
225
  add_text_to_textbox(info_text_area, "You climb into the house")
226
226
  Move("Balcony")
227
227
  else:
@@ -482,7 +482,8 @@ def showStatus():
482
482
 
483
483
  # Optionally display additional room description
484
484
  if "description" in ROOMS[player.CURRENTROOM] and ask_for_consent(
485
- "Do you want to observe the area"
485
+ "Do you want to observe the area",
486
+ info_text_area
486
487
  ):
487
488
  add_text_to_textbox(info_text_area, "The area:")
488
489
  add_text_to_textbox(info_text_area, ROOMS[player.CURRENTROOM]["description"])
@@ -617,7 +618,7 @@ def battle(player: PC, good_guys: list, bad_guys: list, last_room):
617
618
  handle_victory(player, bad_guys)
618
619
  return good_guys, None
619
620
 
620
- if ask_for_consent("Do you want to run away"):
621
+ if ask_for_consent("Do you want to run away", info_text_area):
621
622
  Move(last_room)
622
623
  return good_guys, bad_guys
623
624
 
@@ -861,7 +862,7 @@ def get_player_input(split=True):
861
862
  global player
862
863
  move = ""
863
864
  while move == "":
864
- move = str(input(">")).strip().lower()
865
+ move = loop_til_valid_input("command:", "please enter a string:", str).strip().lower()
865
866
  if split:
866
867
  return move.split()
867
868
  return move
@@ -1015,7 +1016,7 @@ def PrintMap():
1015
1016
  def handle_hungry_bear(player: PC, enemy: creature):
1016
1017
  enemy_reacting = True
1017
1018
  if "potion" in player.inventory:
1018
- if ask_for_consent("Do you want to throw your potion at the bear"):
1019
+ if ask_for_consent("Do you want to throw your potion at the bear", info_text_area):
1019
1020
  enemy_reacting = False
1020
1021
  del player.inventory[player.inventory.index("potion")]
1021
1022
  add_text_to_textbox(info_text_area,
@@ -1028,7 +1029,7 @@ def handle_hungry_bear(player: PC, enemy: creature):
1028
1029
  def handle_grumpy_pig(player: PC, enemy: creature):
1029
1030
  enemy_reacting = True
1030
1031
  if "saddle" in player.inventory and "pig-rod" in player.inventory:
1031
- if ask_for_consent("Do you want to use your saddle and pig-rod on the pig"):
1032
+ if ask_for_consent("Do you want to use your saddle and pig-rod on the pig", info_text_area):
1032
1033
  enemy_reacting = False
1033
1034
  add_text_to_textbox(info_text_area,
1034
1035
  f"You throw a saddle onto the pig and leap on steering it about with a pig fishing rod!"
@@ -1039,7 +1040,7 @@ def handle_grumpy_pig(player: PC, enemy: creature):
1039
1040
  player.inventory_add(item["pig-steed"], info_text_area)
1040
1041
  player.xp += 20
1041
1042
  if "torch" in player.inventory:
1042
- if ask_for_consent("Do you want to use your torch to scare the pig away"):
1043
+ if ask_for_consent("Do you want to use your torch to scare the pig away", info_text_area):
1043
1044
  enemy_reacting = False
1044
1045
  add_text_to_textbox(info_text_area,
1045
1046
  f"You wave your torch at the pig and it runs away through a tiny open window."
@@ -1049,7 +1050,7 @@ def handle_grumpy_pig(player: PC, enemy: creature):
1049
1050
  ]
1050
1051
  player.xp += 5
1051
1052
  if "rations" in player.inventory:
1052
- if ask_for_consent("Do you want to throw your ration at the pig"):
1053
+ if ask_for_consent("Do you want to throw your ration at the pig", info_text_area):
1053
1054
  enemy_reacting = False
1054
1055
  add_text_to_textbox(info_text_area,
1055
1056
  f"You quickly throw rations at the pig. It still doesn't look happy though."
@@ -1064,7 +1065,7 @@ def handle_grumpy_pig(player: PC, enemy: creature):
1064
1065
  def handle_greedy_goblin(player: PC, enemy: creature):
1065
1066
  enemy_reacting = True
1066
1067
  if player.money >= 15:
1067
- if ask_for_consent("Do you want to pay the goblin to not attack you"):
1068
+ if ask_for_consent("Do you want to pay the goblin to not attack you", info_text_area):
1068
1069
  enemy_reacting = False
1069
1070
  add_text_to_textbox(info_text_area,
1070
1071
  f"You pay the {enemy.name} to not attack you for now, but he says you should run."
@@ -1125,7 +1126,7 @@ guards = [
1125
1126
  def handle_wolf(player: PC, wolf: Guard):
1126
1127
  enemy_reacting = True
1127
1128
  if "rations" in player.inventory:
1128
- if ask_for_consent("Do you want to give your ration to the wolf"):
1129
+ if ask_for_consent("Do you want to give your ration to the wolf", info_text_area):
1129
1130
  enemy_reacting = False
1130
1131
  add_text_to_textbox(info_text_area,
1131
1132
  "You quickly give your rations to the wolf. It looks happy, walks up to you, and nuzzles you."
@@ -1367,7 +1368,8 @@ def main():
1367
1368
  if enemy.hp > 0:
1368
1369
  enemy.add_text_flavor_text(info_text_area)
1369
1370
  if ask_for_consent(
1370
- f"Do you want to examine the {enemy.name}"
1371
+ f"Do you want to examine the {enemy.name}",
1372
+ info_text_area
1371
1373
  ):
1372
1374
  enemy.add_text_description(info_text_area)
1373
1375
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.24.2
3
+ Version: 3.24.4
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=nlk6TjM5Rc_VVa9z6luWICtYTom3tupyyJsrxmlwMtI,53498
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=FS5YHcfptxbTmNJHoilzGcV68BWYSKP1GxKGYNIj6H8,53764
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=AnDB5LOawpk0tpnda801r2hAVMFJRq5gbHWkcM
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=tHrXoTOU4_rXSPM48yKJuqotMFMoeEoWdanE5OgJvX4,14880
11
- neelthee_mansion-3.24.2.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
- neelthee_mansion-3.24.2.dist-info/METADATA,sha256=5jBMod6GVvuAfoK1wOVinUdzTTmv4Ewxopt3QZU4XQk,1756
13
- neelthee_mansion-3.24.2.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
- neelthee_mansion-3.24.2.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
- neelthee_mansion-3.24.2.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
- neelthee_mansion-3.24.2.dist-info/RECORD,,
11
+ neelthee_mansion-3.24.4.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
+ neelthee_mansion-3.24.4.dist-info/METADATA,sha256=2SkKgoTZ3Ozs-1gOnWEPfpwF0ZmdFiHACMuasd2KXK0,1756
13
+ neelthee_mansion-3.24.4.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
14
+ neelthee_mansion-3.24.4.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.24.4.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.24.4.dist-info/RECORD,,