neelthee-mansion 3.19.17__tar.gz → 3.19.19__tar.gz
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-3.19.17 → neelthee_mansion-3.19.19}/PKG-INFO +1 -1
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/Mansion_of_Amnesia.py +28 -25
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/creatures.py +8 -6
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/PKG-INFO +1 -1
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/setup.py +1 -1
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/LICENSE.md +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/README.md +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/Books.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/Rooms.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/setup.cfg +0 -0
{neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion/Mansion_of_Amnesia.py
RENAMED
@@ -1283,34 +1283,37 @@ def main():
|
|
1283
1283
|
|
1284
1284
|
for enemy in enemies:
|
1285
1285
|
if isinstance(enemy, creature):
|
1286
|
-
if enemy
|
1287
|
-
enemy.
|
1288
|
-
|
1289
|
-
enemy.
|
1290
|
-
|
1291
|
-
|
1292
|
-
|
1293
|
-
|
1294
|
-
|
1295
|
-
|
1296
|
-
|
1297
|
-
|
1298
|
-
|
1299
|
-
|
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
|
-
|
1302
|
-
|
1303
|
-
|
1304
|
-
|
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
|
-
|
1309
|
+
enemies[enemies.index(enemy)] = enemy_REF
|
1307
1310
|
|
1308
|
-
|
1309
|
-
|
1310
|
-
|
1311
|
-
|
1312
|
-
|
1313
|
-
|
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()
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/dependency_links.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/entry_points.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/requires.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.17 → neelthee_mansion-3.19.19}/neelthee_mansion.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|