neelthee-mansion 3.19.21__tar.gz → 3.19.22__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.21 → neelthee_mansion-3.19.22}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/creatures.py +9 -3
  3. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  4. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/setup.py +1 -1
  5. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/LICENSE.md +0 -0
  6. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/README.md +0 -0
  7. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/Books.py +0 -0
  8. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/Mansion_of_Amnesia.py +0 -0
  9. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/Quests.py +0 -0
  10. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/Rooms.py +0 -0
  11. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/__init__.py +0 -0
  12. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/__main__.py +0 -0
  13. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/all_game_utils.py +0 -0
  14. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/items.py +0 -0
  15. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion/utils.py +0 -0
  16. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  17. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  18. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  19. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion.egg-info/requires.txt +0 -0
  20. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/neelthee_mansion.egg-info/top_level.txt +0 -0
  21. {neelthee_mansion-3.19.21 → neelthee_mansion-3.19.22}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.19.21
3
+ Version: 3.19.22
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
@@ -519,14 +519,20 @@ class NPC(Guard):
519
519
  # Normalize the input to lowercase
520
520
  player_input = player_input.lower()
521
521
 
522
+ # Exit the loop if the player says "goodbye"
523
+ if player_input == "goodbye":
524
+ type_text(f"%*BROWN*%{self.name}%*RESET*% says: 'Goodbye then. Don't get lost!'")
525
+ break
526
+
522
527
  # Check for keywords and map to corresponding response
523
528
  for topic, variations in self.keyword_variations.items():
524
529
  if any(variation in player_input for variation in variations):
525
530
  self.asked_about.add(topic)
526
531
  type_text(self._get_response(topic))
527
-
528
- # If no keywords found, return a generic response
529
- type_text(self._generic_response())
532
+ break # Stop further keyword checks and wait for the next input
533
+ else:
534
+ # If no keywords found, return a generic response
535
+ type_text(self._generic_response())
530
536
 
531
537
  def _get_response(self, topic):
532
538
  """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.21
3
+ Version: 3.19.22
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.21",
5
+ version="3.19.22",
6
6
  packages=find_packages(), # Automatically finds all packages and modules
7
7
  install_requires=[
8
8
  "wheel",