neelthee-mansion 3.19.18__tar.gz → 3.19.20__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.18 → neelthee_mansion-3.19.20}/PKG-INFO +1 -1
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Mansion_of_Amnesia.py +29 -26
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Rooms.py +1 -1
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/creatures.py +4 -2
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/PKG-INFO +1 -1
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/setup.py +1 -1
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/LICENSE.md +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/README.md +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Books.py +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/setup.cfg +0 -0
{neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Mansion_of_Amnesia.py
RENAMED
@@ -536,7 +536,7 @@ def Examine(*Args):
|
|
536
536
|
if isinstance(Creature, creature):
|
537
537
|
if isinstance(Creature, NPC):
|
538
538
|
if Creature.name.lower() == Name:
|
539
|
-
Creature.talk()
|
539
|
+
type_text(Creature.talk())
|
540
540
|
return
|
541
541
|
else:
|
542
542
|
type_text(f"There is nothing special about the {Name}.")
|
@@ -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"]
|
@@ -743,7 +743,7 @@ You notice a "
|
|
743
743
|
"containers": {
|
744
744
|
"bookcases": container(sample(books, 3)),
|
745
745
|
},
|
746
|
-
"info": "Towering %*RED*%bookcases%*RESET*% filled with odd, mismatched books line the walls. A cat named %*BROWN*%geraldo times%*RESET
|
746
|
+
"info": "Towering %*RED*%bookcases%*RESET*% filled with odd, mismatched books line the walls. A cat named %*BROWN*%geraldo times%*RESET*%. Some have faded titles, others are blank, arranged almost deliberately. One bookcase stands slightly forward, leaving a faint scrape on the floor. The air is still, as if waiting for you to notice.",
|
747
747
|
"map": """
|
748
748
|
█████████
|
749
749
|
█ █
|
@@ -509,8 +509,10 @@ class NPC(Guard):
|
|
509
509
|
self.generic_response = generic_response
|
510
510
|
|
511
511
|
def talk(self):
|
512
|
-
player_input =
|
513
|
-
f"What do you want to say to %*BROWN*%{self.name}%*RESET*%?
|
512
|
+
player_input = loop_til_valid_input(
|
513
|
+
f"What do you want to say to %*BROWN*%{self.name}%*RESET*%?",
|
514
|
+
"",
|
515
|
+
str,
|
514
516
|
)
|
515
517
|
|
516
518
|
# Normalize the input to lowercase
|
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.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/dependency_links.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/entry_points.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/requires.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|