neelthee-mansion 3.7.3__tar.gz → 3.7.5__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.
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/PKG-INFO +1 -1
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/Mansion_of_Amnesia.py +10 -6
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/items.py +3 -2
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/PKG-INFO +1 -1
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/setup.py +1 -1
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/README.md +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/Rooms.py +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/creatures.py +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/setup.cfg +0 -0
@@ -433,13 +433,15 @@ def display_directions(text):
|
|
433
433
|
|
434
434
|
def Examin(*Args):
|
435
435
|
Name = ' '.join(Args)
|
436
|
-
|
437
|
-
|
436
|
+
item_index = player.inventory.index(Name) # Store the result of index in a variable
|
437
|
+
|
438
|
+
if item_index is not None: # Check explicitly if item_index is valid
|
439
|
+
_ = player.inventory[item_index]
|
438
440
|
type_text("You look at your item and you figure out this about it:")
|
439
441
|
if not revealer.reveal_key_code(_):
|
440
442
|
if _.type == 'weapon':
|
441
443
|
type_text(f"This item is a weapon that adds {_.value} damage.")
|
442
|
-
elif Name in ROOMS[player.CURRENTROOM]['directions']:
|
444
|
+
elif Name in ROOMS[player.CURRENTROOM]['directions']: # Check exits in the room
|
443
445
|
door = ROOMS[player.CURRENTROOM]['directions'][Name]
|
444
446
|
if isinstance(door, Door):
|
445
447
|
if isinstance(door.lock, Lock):
|
@@ -448,8 +450,8 @@ def Examin(*Args):
|
|
448
450
|
else:
|
449
451
|
type_text(f"The exit {Name} has no lock.")
|
450
452
|
else:
|
451
|
-
type_text(f"There is nothing
|
452
|
-
elif Name in ROOMS[player.CURRENTROOM]['containers']:
|
453
|
+
type_text(f"There is nothing special about the exit {Name}.")
|
454
|
+
elif Name in ROOMS[player.CURRENTROOM]['containers']: # Check containers in the room
|
453
455
|
containerins = ROOMS[player.CURRENTROOM]['containers'][Name]
|
454
456
|
if isinstance(containerins, container):
|
455
457
|
if isinstance(containerins.lock, Lock):
|
@@ -458,7 +460,9 @@ def Examin(*Args):
|
|
458
460
|
else:
|
459
461
|
type_text(f"The container {Name} has no lock.")
|
460
462
|
else:
|
461
|
-
type_text(f"There is no container {
|
463
|
+
type_text(f"There is no container named {Name} in this room.")
|
464
|
+
else:
|
465
|
+
type_text(f"There is no {Name} to examine.")
|
462
466
|
|
463
467
|
def battle(player: PC, good_guys: list, bad_guys: list, last_room):
|
464
468
|
"""
|
@@ -52,7 +52,7 @@ class Key(item):
|
|
52
52
|
def __init__(self, name: str = '', KeyCode: str = None, KeyDels: bool = False):
|
53
53
|
super().__init__(name, 'key', KeyCode if KeyCode else get_random_string(10))
|
54
54
|
self.KeyDels = KeyDels
|
55
|
-
self.
|
55
|
+
self.reveal_count = 0
|
56
56
|
self.CurentRevealStr = "=" * len(self.value)
|
57
57
|
|
58
58
|
def GetKeyCode(self):
|
@@ -83,7 +83,8 @@ class KeyRevealer:
|
|
83
83
|
|
84
84
|
obj.reveal_count += 1
|
85
85
|
obj.CurentRevealStr = ''.join(result)
|
86
|
-
|
86
|
+
type_text("".join(result))
|
87
|
+
return True
|
87
88
|
return
|
88
89
|
|
89
90
|
class ShopItem:
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='neelthee_mansion',
|
5
|
-
version='3.7.
|
5
|
+
version='3.7.5',
|
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',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/dependency_links.txt
RENAMED
File without changes
|
{neelthee_mansion-3.7.3 → neelthee_mansion-3.7.5}/neelthee_mansion.egg-info/entry_points.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|