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.
Files changed (21) hide show
  1. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Mansion_of_Amnesia.py +29 -26
  3. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Rooms.py +1 -1
  4. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/creatures.py +4 -2
  5. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  6. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/setup.py +1 -1
  7. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/LICENSE.md +0 -0
  8. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/README.md +0 -0
  9. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Books.py +0 -0
  10. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/Quests.py +0 -0
  11. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/__init__.py +0 -0
  12. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/__main__.py +0 -0
  13. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/all_game_utils.py +0 -0
  14. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/items.py +0 -0
  15. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion/utils.py +0 -0
  16. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  17. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  18. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  19. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/requires.txt +0 -0
  20. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/neelthee_mansion.egg-info/top_level.txt +0 -0
  21. {neelthee_mansion-3.19.18 → neelthee_mansion-3.19.20}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.19.18
3
+ Version: 3.19.20
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
- 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.hp > 0:
1287
- enemy.type_text_flavor_text()
1288
- if ask_for_consent(f"Do you want to examine the {enemy.name}"):
1289
- enemy.type_text_description()
1290
-
1291
- # Handle specific creatures
1292
- if enemy.name == "hungry bear":
1293
- enemy_REF = handle_hungry_bear(player, enemy)
1294
- elif enemy.name == "grumpy pig":
1295
- enemy_REF = handle_grumpy_pig(player, enemy)
1296
- elif enemy.name == "greedy goblin":
1297
- enemy_REF = handle_greedy_goblin(player, enemy)
1298
- else:
1299
- enemy_REF = enemy
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
- if isinstance(enemy_REF, list):
1302
- is_reacting = enemy_REF[1]
1303
- enemy_REF = enemy_REF[0]
1304
- is_reactings.append(is_reacting)
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
- enemies[enemies.index(enemy)] = enemy_REF
1309
+ enemies[enemies.index(enemy)] = enemy_REF
1307
1310
 
1308
- # Add to good or bad lists if reacting
1309
- if is_reacting:
1310
- if enemy_REF.frendly:
1311
- good_guys.append(enemy_REF)
1312
- else:
1313
- bad_guys.append(enemy_REF)
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*% 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.",
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 = input(
513
- f"What do you want to say to %*BROWN*%{self.name}%*RESET*%? \n>"
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
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.19.18
3
+ Version: 3.19.20
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.18",
5
+ version="3.19.20",
6
6
  packages=find_packages(), # Automatically finds all packages and modules
7
7
  install_requires=[
8
8
  "wheel",