neelthee-mansion 3.13.0__tar.gz → 3.14.1__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 (19) hide show
  1. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/PKG-INFO +1 -1
  2. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/Mansion_of_Amnesia.py +4 -0
  3. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/creatures.py +4 -1
  4. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion.egg-info/PKG-INFO +1 -1
  5. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/setup.py +1 -1
  6. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/README.md +0 -0
  7. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/Quests.py +0 -0
  8. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/Rooms.py +0 -0
  9. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/__init__.py +0 -0
  10. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/__main__.py +0 -0
  11. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/all_game_utils.py +0 -0
  12. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/items.py +0 -0
  13. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion/utils.py +0 -0
  14. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
  15. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
  16. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion.egg-info/entry_points.txt +0 -0
  17. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion.egg-info/requires.txt +0 -0
  18. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/neelthee_mansion.egg-info/top_level.txt +0 -0
  19. {neelthee_mansion-3.13.0 → neelthee_mansion-3.14.1}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee_mansion
3
- Version: 3.13.0
3
+ Version: 3.14.1
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
@@ -479,6 +479,10 @@ def battle(player: PC, good_guys: list, bad_guys: list, last_room):
479
479
  None if all bad guys are defeated, else the remaining bad guys.
480
480
  """
481
481
  while player.hp > 0:
482
+ if all(monster.hp <= 0 for monster in bad_guys):
483
+ handle_victory(player, bad_guys)
484
+ return good_guys, None
485
+
482
486
  if ask_for_consent("Do you want to run away"):
483
487
  Move(last_room)
484
488
  return good_guys, bad_guys
@@ -199,7 +199,10 @@ class Guard(creature):
199
199
  rooms = []
200
200
  for direction, room in ROOMS[self.current_room]['directions'].items():
201
201
  rooms.append(room)
202
- self.current_room = choice(rooms).GetRoom(self.current_room)
202
+ if hasattr(room, 'GetRoom'):
203
+ self.current_room = choice(rooms).GetRoom(self.current_room)
204
+ return
205
+ self.current_room = choice(rooms)
203
206
  elif self.patrol_type == 'follow':
204
207
  for direction, room in ROOMS[self.current_room]['directions'].items():
205
208
  if room.GetRoom(self.current_room) == player.CURRENTROOM:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.13.0
3
+ Version: 3.14.1
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.13.0',
5
+ version='3.14.1',
6
6
  packages=find_packages(), # Automatically finds all packages and modules
7
7
  install_requires=[
8
8
  'wheel', 'psutil', 'playsound', 'requests', 'keyboard', 'pandas', 'validators', 'dicttoxml', 'pytz',