neelthee-mansion 3.14.1__py3-none-any.whl → 3.14.2__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 +42 -40
- neelthee_mansion/Rooms.py +2 -2
- {neelthee_mansion-3.14.1.dist-info → neelthee_mansion-3.14.2.dist-info}/METADATA +1 -1
- {neelthee_mansion-3.14.1.dist-info → neelthee_mansion-3.14.2.dist-info}/RECORD +7 -7
- {neelthee_mansion-3.14.1.dist-info → neelthee_mansion-3.14.2.dist-info}/WHEEL +0 -0
- {neelthee_mansion-3.14.1.dist-info → neelthee_mansion-3.14.2.dist-info}/entry_points.txt +0 -0
- {neelthee_mansion-3.14.1.dist-info → neelthee_mansion-3.14.2.dist-info}/top_level.txt +0 -0
@@ -1034,23 +1034,24 @@ def main():
|
|
1034
1034
|
# Check for detection
|
1035
1035
|
for guard in guards:
|
1036
1036
|
if isinstance(guard, Guard):
|
1037
|
-
if guard.
|
1038
|
-
|
1039
|
-
|
1040
|
-
|
1041
|
-
|
1042
|
-
|
1043
|
-
|
1044
|
-
|
1045
|
-
|
1046
|
-
|
1047
|
-
if
|
1048
|
-
|
1049
|
-
|
1050
|
-
|
1037
|
+
if guard.HP > 0:
|
1038
|
+
if guard.check_detection(player.CURRENTROOM):
|
1039
|
+
guard_handled = handle_guard_action(guard)
|
1040
|
+
if not isinstance(guard_handled, list):
|
1041
|
+
guard_handled = [guard_handled]
|
1042
|
+
|
1043
|
+
# Get is_reacting from guard_handled
|
1044
|
+
is_reacting = guard_handled[1][1]
|
1045
|
+
|
1046
|
+
# Only update guard if the guard is reacting
|
1047
|
+
if is_reacting:
|
1048
|
+
if guard.frendly:
|
1049
|
+
good_guys.append(guard)
|
1050
|
+
else:
|
1051
|
+
bad_guys.append(guard)
|
1051
1052
|
|
1052
|
-
|
1053
|
-
|
1053
|
+
if guard_handled[0]:
|
1054
|
+
guards[guards.index(guard)] = guard_handled[1][0]
|
1054
1055
|
|
1055
1056
|
# Handle creatures in the current room
|
1056
1057
|
if 'creatures stats' in ROOMS[player.CURRENTROOM]:
|
@@ -1061,33 +1062,34 @@ def main():
|
|
1061
1062
|
|
1062
1063
|
for enemy in enemies:
|
1063
1064
|
if isinstance(enemy, creature):
|
1064
|
-
enemy.
|
1065
|
-
|
1066
|
-
enemy.
|
1067
|
-
|
1068
|
-
|
1069
|
-
|
1070
|
-
|
1071
|
-
|
1072
|
-
|
1073
|
-
|
1074
|
-
|
1075
|
-
|
1076
|
-
|
1065
|
+
if enemy.HP > 0:
|
1066
|
+
enemy.type_text_flavor_text()
|
1067
|
+
if ask_for_consent(f"Do you want to examine the {enemy.name}"):
|
1068
|
+
enemy.type_text_description()
|
1069
|
+
|
1070
|
+
# Handle specific creatures
|
1071
|
+
if enemy.name == 'hungry bear':
|
1072
|
+
enemy_REF = handle_hungry_bear(player, enemy)
|
1073
|
+
elif enemy.name == 'grumpy pig':
|
1074
|
+
enemy_REF = handle_grumpy_pig(player, enemy)
|
1075
|
+
elif enemy.name == 'greedy goblin':
|
1076
|
+
enemy_REF = handle_greedy_goblin(player, enemy)
|
1077
|
+
else:
|
1078
|
+
enemy_REF = enemy
|
1077
1079
|
|
1078
|
-
|
1079
|
-
|
1080
|
-
|
1081
|
-
|
1080
|
+
if isinstance(enemy_REF, list):
|
1081
|
+
is_reacting = enemy_REF[1]
|
1082
|
+
enemy_REF = enemy_REF[0]
|
1083
|
+
is_reactings.append(is_reacting)
|
1082
1084
|
|
1083
|
-
|
1085
|
+
enemies[enemies.index(enemy)] = enemy_REF
|
1084
1086
|
|
1085
|
-
|
1086
|
-
|
1087
|
-
|
1088
|
-
|
1089
|
-
|
1090
|
-
|
1087
|
+
# Add to good or bad lists if reacting
|
1088
|
+
if is_reacting:
|
1089
|
+
if enemy_REF.frendly:
|
1090
|
+
good_guys.append(enemy_REF)
|
1091
|
+
else:
|
1092
|
+
bad_guys.append(enemy_REF)
|
1091
1093
|
|
1092
1094
|
if all_same_value(enemies, False):
|
1093
1095
|
del ROOMS[player.CURRENTROOM]['creatures stats']
|
neelthee_mansion/Rooms.py
CHANGED
@@ -204,7 +204,7 @@ ROOMS = {
|
|
204
204
|
'hungry bear',
|
205
205
|
7,
|
206
206
|
5,
|
207
|
-
[item('claw')],
|
207
|
+
[item('claw', 'valuable', 1)],
|
208
208
|
'A large 7ft 8 brown bear that looks hungry',
|
209
209
|
'A %*CYAN*%hungry%*RESET*% bear attacks you!',
|
210
210
|
),
|
@@ -294,7 +294,7 @@ ROOMS = {
|
|
294
294
|
'position': (0, 0, 0),
|
295
295
|
'discovered': False,
|
296
296
|
'directions': {
|
297
|
-
'south' :'Hall',
|
297
|
+
'south' : Door('Hall'),
|
298
298
|
'east': Door('Sitting Room'),
|
299
299
|
'up': Door('Tower Bottom'),
|
300
300
|
},
|
@@ -1,14 +1,14 @@
|
|
1
|
-
neelthee_mansion/Mansion_of_Amnesia.py,sha256=
|
1
|
+
neelthee_mansion/Mansion_of_Amnesia.py,sha256=UU5c55WquTvcqh6oo4r48VlkqQ4HNVK8nHjvbRyDooE,45049
|
2
2
|
neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
|
3
|
-
neelthee_mansion/Rooms.py,sha256=
|
3
|
+
neelthee_mansion/Rooms.py,sha256=grgMiAAC9EUlZlhDlb9hOpk23h6S9Uyzib7uFkVwnTk,87865
|
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=mnxws_YEnsoftkkBMZv1k_zlnGKWGenUvsZnNKjuFJQ,349
|
7
7
|
neelthee_mansion/creatures.py,sha256=_TF-rbiTITvTX2rb6d5gZqGMwpMDPOKjFYnYwq76UK8,15513
|
8
8
|
neelthee_mansion/items.py,sha256=_6-kBLmlUcB9c0_YpOjAr43Mwvy0kdoTkGU4tDvA2hk,5538
|
9
9
|
neelthee_mansion/utils.py,sha256=Wt1CdK4eCskrxRXkeKgzVoa_NIzwQ047dJU-b_e8pb8,13559
|
10
|
-
neelthee_mansion-3.14.
|
11
|
-
neelthee_mansion-3.14.
|
12
|
-
neelthee_mansion-3.14.
|
13
|
-
neelthee_mansion-3.14.
|
14
|
-
neelthee_mansion-3.14.
|
10
|
+
neelthee_mansion-3.14.2.dist-info/METADATA,sha256=ibekRzfly2AI05oT-OG7JobPm0rJQJd7H51LrV9F9fE,1992
|
11
|
+
neelthee_mansion-3.14.2.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
|
12
|
+
neelthee_mansion-3.14.2.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
|
13
|
+
neelthee_mansion-3.14.2.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
|
14
|
+
neelthee_mansion-3.14.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|