neelthee-mansion 3.6.13__py3-none-any.whl → 3.6.16__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.
- neelthee_mansion/Mansion_of_Amnesia.py +10 -11
- neelthee_mansion/Rooms.py +1 -1
- neelthee_mansion/items.py +3 -3
- {neelthee_mansion-3.6.13.dist-info → neelthee_mansion-3.6.16.dist-info}/METADATA +1 -1
- {neelthee_mansion-3.6.13.dist-info → neelthee_mansion-3.6.16.dist-info}/RECORD +8 -8
- {neelthee_mansion-3.6.13.dist-info → neelthee_mansion-3.6.16.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.6.13.dist-info → neelthee_mansion-3.6.16.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.6.13.dist-info → neelthee_mansion-3.6.16.dist-info}/top_level.txt +0 -0
@@ -273,7 +273,7 @@ def PickKey(locked_obj):
|
|
273
273
|
|
274
274
|
# Enumerate keys and display them
|
275
275
|
for idx, key in enumerate(keys, 1): # Starts numbering at 1
|
276
|
-
type_text(f"{idx}. {key}")
|
276
|
+
type_text(f"{idx}. {key.name} - {key.CurentRevealStr}")
|
277
277
|
|
278
278
|
# Use loop_til_valid_input to get a valid integer within the correct range
|
279
279
|
choice = loop_til_valid_input(
|
@@ -306,9 +306,8 @@ def Move(move):
|
|
306
306
|
|
307
307
|
def attempt_move_to_garden():
|
308
308
|
global player
|
309
|
-
type_text("Please pick whitch key you want to try in the lock on the gate")
|
310
309
|
key = PickKey(Lock("629.IdnXwnt"))
|
311
|
-
if key.
|
310
|
+
if key.GetKeyCode() == "629.IdnXwnt":
|
312
311
|
End('You unlock the gate to the garden with the key!')
|
313
312
|
return newRoom
|
314
313
|
type_text('The gate is locked.', colorTrue=color_coding)
|
@@ -663,8 +662,8 @@ def select_target(chooser, targets: list):
|
|
663
662
|
|
664
663
|
|
665
664
|
def command():
|
666
|
-
|
667
|
-
|
665
|
+
global player
|
666
|
+
try:
|
668
667
|
ShouldBreak = False
|
669
668
|
|
670
669
|
while True:
|
@@ -692,12 +691,12 @@ def command():
|
|
692
691
|
ShouldBreak = True
|
693
692
|
if ShouldBreak:
|
694
693
|
return
|
695
|
-
|
696
|
-
|
697
|
-
|
698
|
-
|
699
|
-
|
700
|
-
|
694
|
+
except KeyError as e:
|
695
|
+
type_text(f"KeyError: {e} - This might be due to an undefined command or incorrect arguments.", colorTrue=color_coding)
|
696
|
+
except ValueError as e:
|
697
|
+
type_text(f"ValueError: {e} - This might be due to incorrect arguments provided.", colorTrue=color_coding)
|
698
|
+
except Exception as e:
|
699
|
+
type_text(f"Unexpected Error: {e}", colorTrue=color_coding)
|
701
700
|
|
702
701
|
def handle_sleep_command(player: PC):
|
703
702
|
type_text("You decide to rest for a while.", colorTrue=color_coding)
|
neelthee_mansion/Rooms.py
CHANGED
@@ -46,7 +46,7 @@ class Door:
|
|
46
46
|
self.destination = RoomName
|
47
47
|
self.lock = Lock(KeyCode) if KeyCode else None
|
48
48
|
self.reveal_count = 0
|
49
|
-
self.CurentRevealStr = "
|
49
|
+
self.CurentRevealStr = "=" * len(self.lock.key_code) if isinstance(self.lock, Lock) else ""
|
50
50
|
|
51
51
|
def Unlock(self, key: Key, player):
|
52
52
|
return self.lock.unlock(key, player)
|
neelthee_mansion/items.py
CHANGED
@@ -53,7 +53,7 @@ class Key(item):
|
|
53
53
|
super().__init__(name, 'key', KeyCode if KeyCode else get_random_string(10))
|
54
54
|
self.KeyDels = KeyDels
|
55
55
|
self.RevealCount = 0
|
56
|
-
self.CurentRevealStr = "
|
56
|
+
self.CurentRevealStr = "=" * len(self.value)
|
57
57
|
|
58
58
|
def GetKeyCode(self):
|
59
59
|
return self.value
|
@@ -62,7 +62,7 @@ class KeyRevealer:
|
|
62
62
|
def __init__(self, max_reveals=2):
|
63
63
|
self.max_reveals = max_reveals
|
64
64
|
|
65
|
-
def reveal_key_code(self, obj: Key, mask_char="
|
65
|
+
def reveal_key_code(self, obj: Key, mask_char="="):
|
66
66
|
if obj.reveal_count >= self.max_reveals:
|
67
67
|
type_text(f"You can only reveal a Key Code twice.")
|
68
68
|
type_text(f"Here is what you already know about this lock: {obj.CurentRevealStr}")
|
@@ -141,7 +141,7 @@ class container:
|
|
141
141
|
self.secret = secret
|
142
142
|
self.lock = Lock(KeyCode) if KeyCode else None
|
143
143
|
self.RevealCount = 0
|
144
|
-
self.CurentRevealStr = "
|
144
|
+
self.CurentRevealStr = "=" * len(self.lock.key_code) if isinstance(self.lock, Lock) else ""
|
145
145
|
|
146
146
|
def take_contents(self, geter=None):
|
147
147
|
if isinstance(self.lock, Lock) and self.lock.is_locked:
|
@@ -1,14 +1,14 @@
|
|
1
|
-
neelthee_mansion/Mansion_of_Amnesia.py,sha256=
|
1
|
+
neelthee_mansion/Mansion_of_Amnesia.py,sha256=qjNXfq17EcNFyP0-TfZPvGTqotCfiRZl9MG8pNTt2WU,44180
|
2
2
|
neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
|
3
|
-
neelthee_mansion/Rooms.py,sha256
|
3
|
+
neelthee_mansion/Rooms.py,sha256=k658h0TUr0EuVnHgbi0xJ2qnmFq_9rpe0V6mZF9_mqA,87843
|
4
4
|
neelthee_mansion/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
5
5
|
neelthee_mansion/__main__.py,sha256=OIAWZ04le70DyjtR4hlmK9csHej7EHxeUrMoNnM-Vjc,95
|
6
6
|
neelthee_mansion/all_game_utils.py,sha256=Xfty9uXiYAfmA6iVzJurq852ZBPn7a4gQUcUcaV9yEU,341
|
7
7
|
neelthee_mansion/creatures.py,sha256=DQKYl1G3N92ycjay3_kxTMcOkj1S-zXKqRGUbbFZNlU,15396
|
8
|
-
neelthee_mansion/items.py,sha256=
|
8
|
+
neelthee_mansion/items.py,sha256=eYgsLK6JNcetkADA7ndekNkaL_QktaAQTgUyJRnXwts,5156
|
9
9
|
neelthee_mansion/utils.py,sha256=Wt1CdK4eCskrxRXkeKgzVoa_NIzwQ047dJU-b_e8pb8,13559
|
10
|
-
neelthee_mansion-3.6.
|
11
|
-
neelthee_mansion-3.6.
|
12
|
-
neelthee_mansion-3.6.
|
13
|
-
neelthee_mansion-3.6.
|
14
|
-
neelthee_mansion-3.6.
|
10
|
+
neelthee_mansion-3.6.16.dist-info/METADATA,sha256=9hu__UEDV7Irnx_ZwdX2-g-SZdqgTO8KHwuytKVEifc,1992
|
11
|
+
neelthee_mansion-3.6.16.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
12
|
+
neelthee_mansion-3.6.16.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
13
|
+
neelthee_mansion-3.6.16.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
14
|
+
neelthee_mansion-3.6.16.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|