neelthee-mansion 3.19.16__py3-none-any.whl → 3.19.18__py3-none-any.whl

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.
@@ -531,6 +531,13 @@ def Examine(*Args):
531
531
  type_text(f"The container {Name} has no lock.")
532
532
  else:
533
533
  type_text(f"There is no container named {Name} in this room.")
534
+ elif "creatures stats" in ROOMS[player.CURRENTROOM]:
535
+ for Creature in ROOMS[player.CURRENTROOM]["creatures stats"]:
536
+ if isinstance(Creature, creature):
537
+ if isinstance(Creature, NPC):
538
+ if Creature.name.lower() == Name:
539
+ Creature.talk()
540
+ return
534
541
  else:
535
542
  type_text(f"There is nothing special about the {Name}.")
536
543
 
neelthee_mansion/Rooms.py CHANGED
@@ -737,10 +737,13 @@ You notice a "
737
737
  "west": Door("Room name"),
738
738
  "bookcase": Door("Cavern 3"),
739
739
  },
740
+ "creatures stats": [
741
+ Geraldo()
742
+ ],
740
743
  "containers": {
741
744
  "bookcases": container(sample(books, 3)),
742
745
  },
743
- "info": "Towering %*RED*%bookcases%*RESET*% filled with odd, mismatched books line the walls. 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.",
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.",
744
747
  "map": """
745
748
  █████████
746
749
  █ █
@@ -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()
@@ -536,7 +538,7 @@ class Geraldo(NPC):
536
538
 
537
539
  def __init__(self):
538
540
  super().__init__(
539
- "Geraldo Times",
541
+ "geraldo times",
540
542
  9999999999,
541
543
  999,
542
544
  type=creature_type("beast", "cat"),
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.19.16
3
+ Version: 3.19.18
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
@@ -1,16 +1,16 @@
1
1
  neelthee_mansion/Books.py,sha256=ABAdO2LQJ0PwPlHXpvdANoyz6uNbMTkI8-_RDpq6Qcc,25627
2
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=9TM_PNDB60xeh9LEYtq15UJWLrMvvqr2oM50ecNLAQ8,49152
2
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=uvBFoEJbchJDFLKrfcK3sZ7R-4T8xA7a-jcLqgfSp5Q,49504
3
3
  neelthee_mansion/Quests.py,sha256=pUlru2RugP57MACQORZaF_X9lsbefTdPYTSO474phgo,2791
4
- neelthee_mansion/Rooms.py,sha256=DUTN0OpYvr-JjKvu9aGteyvvgKl2LAskvgt1onlTNXE,78243
4
+ neelthee_mansion/Rooms.py,sha256=OU2A0XhR6xQuGUWE_65JFSOXn6Unxpmow12ucPgWNW4,78352
5
5
  neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
6
6
  neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
7
7
  neelthee_mansion/all_game_utils.py,sha256=AasunTkFmgAqt9ZIoYmymi4R7leBe4ubW-C1ts0Qclo,351
8
- neelthee_mansion/creatures.py,sha256=C8Vab65oLIMIbRXFk_8s2Uwa9SVD65JJkxiclgiUSlI,20066
8
+ neelthee_mansion/creatures.py,sha256=p_jckHtzafeOsd5o7E_BXGQKWgmcOCvJjGho2Bk9zHg,20156
9
9
  neelthee_mansion/items.py,sha256=mV4K3Ep522LypL74NOT112bpP6ywQ1DR0A38KiHJFa8,5816
10
10
  neelthee_mansion/utils.py,sha256=GaCkein6dppeufYfBMk59gHAE2b4p9TJW2MsRjyyFvQ,13702
11
- neelthee_mansion-3.19.16.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
- neelthee_mansion-3.19.16.dist-info/METADATA,sha256=qfWTZ9CElWXK6Qa5sKmIB1Z9fdvTZz0YmUhQSa9j3NM,1757
13
- neelthee_mansion-3.19.16.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
14
- neelthee_mansion-3.19.16.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
- neelthee_mansion-3.19.16.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
- neelthee_mansion-3.19.16.dist-info/RECORD,,
11
+ neelthee_mansion-3.19.18.dist-info/LICENSE.md,sha256=CV8XGZaCyyAMdbkYFQUjb8AjBq9vkoyqdZCq1_hetms,1105
12
+ neelthee_mansion-3.19.18.dist-info/METADATA,sha256=IuVKm7dc8wXZYk6asKp_VoM5fCc7T33vlmtx-HCJe10,1757
13
+ neelthee_mansion-3.19.18.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
14
+ neelthee_mansion-3.19.18.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
15
+ neelthee_mansion-3.19.18.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
16
+ neelthee_mansion-3.19.18.dist-info/RECORD,,