neelthee-mansion 3.19.17__py3-none-any.whl → 3.19.19__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.
@@ -1283,34 +1283,37 @@ def main():
1283
1283
 
1284
1284
  for enemy in enemies:
1285
1285
  if isinstance(enemy, creature):
1286
- if enemy.hp > 0:
1287
- enemy.type_text_flavor_text()
1288
- if ask_for_consent(f"Do you want to examine the {enemy.name}"):
1289
- enemy.type_text_description()
1290
-
1291
- # Handle specific creatures
1292
- if enemy.name == "hungry bear":
1293
- enemy_REF = handle_hungry_bear(player, enemy)
1294
- elif enemy.name == "grumpy pig":
1295
- enemy_REF = handle_grumpy_pig(player, enemy)
1296
- elif enemy.name == "greedy goblin":
1297
- enemy_REF = handle_greedy_goblin(player, enemy)
1298
- else:
1299
- enemy_REF = enemy
1286
+ if not isinstance(enemy, NPC):
1287
+ if enemy.hp > 0:
1288
+ enemy.type_text_flavor_text()
1289
+ if ask_for_consent(f"Do you want to examine the {enemy.name}"):
1290
+ enemy.type_text_description()
1291
+
1292
+ is_reacting = False
1293
+
1294
+ # Handle specific creatures
1295
+ if enemy.name == "hungry bear":
1296
+ enemy_REF = handle_hungry_bear(player, enemy)
1297
+ elif enemy.name == "grumpy pig":
1298
+ enemy_REF = handle_grumpy_pig(player, enemy)
1299
+ elif enemy.name == "greedy goblin":
1300
+ enemy_REF = handle_greedy_goblin(player, enemy)
1301
+ else:
1302
+ enemy_REF = enemy
1300
1303
 
1301
- if isinstance(enemy_REF, list):
1302
- is_reacting = enemy_REF[1]
1303
- enemy_REF = enemy_REF[0]
1304
- is_reactings.append(is_reacting)
1304
+ if isinstance(enemy_REF, list):
1305
+ is_reacting = enemy_REF[1]
1306
+ enemy_REF = enemy_REF[0]
1307
+ is_reactings.append(is_reacting)
1305
1308
 
1306
- enemies[enemies.index(enemy)] = enemy_REF
1309
+ enemies[enemies.index(enemy)] = enemy_REF
1307
1310
 
1308
- # Add to good or bad lists if reacting
1309
- if is_reacting:
1310
- if enemy_REF.frendly:
1311
- good_guys.append(enemy_REF)
1312
- else:
1313
- bad_guys.append(enemy_REF)
1311
+ # Add to good or bad lists if reacting
1312
+ if is_reacting:
1313
+ if enemy_REF.frendly:
1314
+ good_guys.append(enemy_REF)
1315
+ else:
1316
+ bad_guys.append(enemy_REF)
1314
1317
 
1315
1318
  if all_same_value(enemies, False):
1316
1319
  del ROOMS[player.CURRENTROOM]["creatures stats"]
@@ -475,6 +475,12 @@ class NPC(Guard):
475
475
  patrol_route=None,
476
476
  patrol_type="normal",
477
477
  frendly_text="",
478
+ responses = {
479
+ "introduction": "Oh, hello. I didn't see you there.",
480
+ },
481
+ keyword_variations = {
482
+ "introduction": ["hello", "hi", "greetings", "hey"],
483
+ },
478
484
  generic_response="The person looks like they don't see you.",
479
485
  ):
480
486
  super().__init__(
@@ -493,14 +499,10 @@ class NPC(Guard):
493
499
  )
494
500
  self.frendly = True
495
501
  # Define the responses for each topic
496
- self.responses = {
497
- "introduction": "Oh, hello. I didn't see you there.",
498
- }
502
+ self.responses = responses
499
503
 
500
504
  # Define keyword variations that map to the same topic
501
- self.keyword_variations = {
502
- "introduction": ["hello", "hi", "greetings", "hey"],
503
- }
505
+ self.keyword_variations = keyword_variations
504
506
 
505
507
  # To keep track of which topics the player has asked about
506
508
  self.asked_about = set()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.19.17
3
+ Version: 3.19.19
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,16 +1,16 @@
1
1
  neelthee_mansion/Books.py,sha256=ABAdO2LQJ0PwPlHXpvdANoyz6uNbMTkI8-_RDpq6Qcc,25627
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=uvBFoEJbchJDFLKrfcK3sZ7R-4T8xA7a-jcLqgfSp5Q,49504
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=8lRuSqEXjsWpEQq58zu6tUSmcG8glfPHsCuPsJe-7CA,49703
3
3
  neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
4
4
  neelthee_mansion/Rooms.py,sha256=OU2A0XhR6xQuGUWE_65JFSOXn6Unxpmow12ucPgWNW4,78352
5
5
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
7
7
  neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts0Qclo,351
8
- neelthee_mansion/creatures.py,sha256=G-0PmSVwbbdyYA5p0IrEaFyV7lbO4JamOiYDwvncgAo,20066
8
+ neelthee_mansion/creatures.py,sha256=p_jckHtzafeOsd5o7E_BXGQKWgmcOCvJjGho2Bk9zHg,20156
9
9
  neelthee_mansion/items.py,sha256=mV4K3Ep522LypL74NOT112bpP6ywQ1DR0A38KiHJFa8,5816
10
10
  neelthee_mansion/utils.py,sha256=GaCkein6dppeufYfBMk59gHAE2b4p9TJW2MsRjyyFvQ,13702
11
- neelthee_mansion-3.19.17.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
- neelthee_mansion-3.19.17.dist-info/METADATA,sha256=rW2T321GkvgqC-f4_DWN9gKdFCW_Jub7Dqe2grML66A,1757
13
- neelthee_mansion-3.19.17.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
14
- neelthee_mansion-3.19.17.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
- neelthee_mansion-3.19.17.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
- neelthee_mansion-3.19.17.dist-info/RECORD,,
11
+ neelthee_mansion-3.19.19.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
+ neelthee_mansion-3.19.19.dist-info/METADATA,sha256=AkblaBrTukhZ_fU1fWuEAN97DOaWedQiVcJhdJ8x0bs,1757
13
+ neelthee_mansion-3.19.19.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
14
+ neelthee_mansion-3.19.19.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.19.19.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.19.19.dist-info/RECORD,,