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.
@@ -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.check_detection(player.CURRENTROOM):
1038
- guard_handled = handle_guard_action(guard)
1039
- if not isinstance(guard_handled, list):
1040
- guard_handled = [guard_handled]
1041
-
1042
- # Get is_reacting from guard_handled
1043
- is_reacting = guard_handled[1][1]
1044
-
1045
- # Only update guard if the guard is reacting
1046
- if is_reacting:
1047
- if guard.frendly:
1048
- good_guys.append(guard)
1049
- else:
1050
- bad_guys.append(guard)
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
- if guard_handled[0]:
1053
- guards[guards.index(guard)] = guard_handled[1][0]
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.type_text_flavor_text()
1065
- if ask_for_consent(f"Do you want to examine the {enemy.name}"):
1066
- enemy.type_text_description()
1067
-
1068
- # Handle specific creatures
1069
- if enemy.name == 'hungry bear':
1070
- enemy_REF = handle_hungry_bear(player, enemy)
1071
- elif enemy.name == 'grumpy pig':
1072
- enemy_REF = handle_grumpy_pig(player, enemy)
1073
- elif enemy.name == 'greedy goblin':
1074
- enemy_REF = handle_greedy_goblin(player, enemy)
1075
- else:
1076
- enemy_REF = enemy
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
- if isinstance(enemy_REF, list):
1079
- is_reacting = enemy_REF[1]
1080
- enemy_REF = enemy_REF[0]
1081
- is_reactings.append(is_reacting)
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
- enemies[enemies.index(enemy)] = enemy_REF
1085
+ enemies[enemies.index(enemy)] = enemy_REF
1084
1086
 
1085
- # Add to good or bad lists if reacting
1086
- if is_reacting:
1087
- if enemy_REF.frendly:
1088
- good_guys.append(enemy_REF)
1089
- else:
1090
- bad_guys.append(enemy_REF)
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,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.14.1
3
+ Version: 3.14.2
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
@@ -1,14 +1,14 @@
1
- neelthee_mansion/Mansion_of_Amnesia.py,sha256=nDyhaHqkrwdToV3Dq76BALtWSEwjWqwOdSmfoZEInCU,44829
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=k658h0TUr0EuVnHgbi0xJ2qnmFq_9rpe0V6mZF9_mqA,87843
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.1.dist-info/METADATA,sha256=GPoIV0s2DSsYOjHbweb_RN5tDHWPhyQbVEHyg9kmyXE,1992
11
- neelthee_mansion-3.14.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
- neelthee_mansion-3.14.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
- neelthee_mansion-3.14.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
- neelthee_mansion-3.14.1.dist-info/RECORD,,
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,,