neelthee-mansion 3.19.20__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.
Files changed (21) hide show
  1. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/Mansion_of_Amnesia.py +1 -1
  3. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/creatures.py +15 -14
  4. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  5. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/setup.py +1 -1
  6. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/LICENSE.md +0 -0
  7. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/README.md +0 -0
  8. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/Books.py +0 -0
  9. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/Quests.py +0 -0
  10. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/Rooms.py +0 -0
  11. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/__init__.py +0 -0
  12. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/__main__.py +0 -0
  13. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/all_game_utils.py +0 -0
  14. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/items.py +0 -0
  15. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion/utils.py +0 -0
  16. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  17. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  18. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  19. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/requires.txt +0 -0
  20. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/neelthee_mansion.egg-info/top_level.txt +0 -0
  21. {neelthee_mansion-3.19.20 → neelthee_mansion-3.19.21}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.19.20
3
+ Version: 3.19.21
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
@@ -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
- type_text(Creature.talk())
539
+ Creature.talk()
540
540
  return
541
541
  else:
542
542
  type_text(f"There is nothing special about the {Name}.")
@@ -509,23 +509,24 @@ class NPC(Guard):
509
509
  self.generic_response = generic_response
510
510
 
511
511
  def talk(self):
512
- player_input = loop_til_valid_input(
513
- f"What do you want to say to %*BROWN*%{self.name}%*RESET*%?",
514
- "",
515
- str,
516
- )
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
+ )
517
518
 
518
- # Normalize the input to lowercase
519
- player_input = player_input.lower()
519
+ # Normalize the input to lowercase
520
+ player_input = player_input.lower()
520
521
 
521
- # Check for keywords and map to corresponding response
522
- for topic, variations in self.keyword_variations.items():
523
- if any(variation in player_input for variation in variations):
524
- self.asked_about.add(topic)
525
- return self._get_response(topic)
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))
526
527
 
527
- # If no keywords found, return a generic response
528
- return self._generic_response()
528
+ # If no keywords found, return a generic response
529
+ type_text(self._generic_response())
529
530
 
530
531
  def _get_response(self, topic):
531
532
  """Return a response from the NPC based on the topic asked."""
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.19.20
3
+ Version: 3.19.21
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
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
2
2
 
3
3
  setup(
4
4
  name="neelthee_mansion",
5
- version="3.19.20",
5
+ version="3.19.21",
6
6
  packages=find_packages(), # Automatically finds all packages and modules
7
7
  install_requires=[
8
8
  "wheel",