neelthee-mansion 3.19.19__tar.gz → 3.19.21__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.19 → neelthee_mansion-3.19.21}/PKG-INFO +1 -1
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/Rooms.py +1 -1
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/creatures.py +15 -12
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/PKG-INFO +1 -1
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/setup.py +1 -1
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/LICENSE.md +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/README.md +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/Books.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/Mansion_of_Amnesia.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/setup.cfg +0 -0
@@ -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,21 +509,24 @@ class NPC(Guard):
|
|
509
509
|
self.generic_response = generic_response
|
510
510
|
|
511
511
|
def talk(self):
|
512
|
-
|
513
|
-
|
514
|
-
|
512
|
+
while True:
|
513
|
+
player_input = loop_til_valid_input(
|
514
|
+
f"What do you want to say to %*BROWN*%{self.name}%*RESET*%?",
|
515
|
+
"",
|
516
|
+
str,
|
517
|
+
)
|
515
518
|
|
516
|
-
|
517
|
-
|
519
|
+
# Normalize the input to lowercase
|
520
|
+
player_input = player_input.lower()
|
518
521
|
|
519
|
-
|
520
|
-
|
521
|
-
|
522
|
-
|
523
|
-
|
522
|
+
# Check for keywords and map to corresponding response
|
523
|
+
for topic, variations in self.keyword_variations.items():
|
524
|
+
if any(variation in player_input for variation in variations):
|
525
|
+
self.asked_about.add(topic)
|
526
|
+
type_text(self._get_response(topic))
|
524
527
|
|
525
|
-
|
526
|
-
|
528
|
+
# If no keywords found, return a generic response
|
529
|
+
type_text(self._generic_response())
|
527
530
|
|
528
531
|
def _get_response(self, topic):
|
529
532
|
"""Return a response from the NPC based on the topic asked."""
|
File without changes
|
File without changes
|
File without changes
|
{neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion/Mansion_of_Amnesia.py
RENAMED
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.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/dependency_links.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/entry_points.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/requires.txt
RENAMED
File without changes
|
{neelthee_mansion-3.19.19 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/top_level.txt
RENAMED
File without changes
|
File without changes
|