neelthee-mansion 3.14.1__py3-none-any.whl → 3.14.3__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
  },
@@ -675,7 +675,8 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
675
675
  'discovered': False,
676
676
  'directions': {
677
677
  'north': Door('Basement 3'),
678
- 'shoot': 'Cavern 1',
678
+ 'east': Door('Library'),
679
+ 'shoot': Door('Cavern 1'),
679
680
  },
680
681
  'item': item('torch'),
681
682
  'info': 'You are in an dimly lit underground (all the light in the room comes from 3 %*BLUE*%torch%*RESET*%es on the walls). there is a choot in the floor (type: \'go shoot\' to go down the shoot).',
@@ -684,7 +685,7 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
684
685
  █ █
685
686
  █ █
686
687
  █ █
687
-
688
+
688
689
  █ █
689
690
  █ █
690
691
  █ █
@@ -694,6 +695,33 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
694
695
  ],
695
696
  },
696
697
 
698
+ 'Library': {
699
+ 'room type': 'house',
700
+ 'position': (0, 0, 0),
701
+ 'discovered': False,
702
+ 'directions': {
703
+ 'west': Door('Room name'),
704
+ 'bookcase': Door('Cavern 3'),
705
+ },
706
+ 'containers': {
707
+ 'bookcases': container([item('\'Book of mistory', 'readable', "Neel-thee is waching you through the mansion itself")]),
708
+ },
709
+ 'info': 'Towering bookcases filled with odd, mismatched books line the walls. Some have faded titles, others are blank, arranged almost deliberately. One bookcase stands slightly forward, leaving a faint scrape on the floor. The air is still, as if waiting for you to notice.',
710
+ 'map': '''
711
+ █████████
712
+ █ █
713
+ █ █
714
+ █ █
715
+ ║ █
716
+ █ █
717
+ █ █
718
+ █ █
719
+ █████████''',
720
+ 'Hints': [
721
+ 'Is it just me or are the first letters of all of those book names spelling the words "I\'m watching you"',
722
+ ],
723
+ },
724
+
697
725
  'Cavern 1': {
698
726
  'room type': 'cavern',
699
727
  'position': (-2, 0, 0),
@@ -742,6 +770,30 @@ You notice a ''%*RED*%storage%*RESET*% device in one corner. You hear a %*YELLOW
742
770
  ],
743
771
  },
744
772
 
773
+ 'Cavern 3': {
774
+ 'room type': 'cavern',
775
+ 'position': (-3, 0, 0),
776
+ 'discovered': False,
777
+ 'directions': {
778
+ 'down': Door('Cavern 2'),
779
+ 'bookcase': Door('Library'),
780
+ },
781
+ 'info': 'you are in a dark cavern with the only light coming from the crack behind a %*GREEN*%bookcase%*RESET*%. A voice in the back of your head says: \'I give up.\'',
782
+ 'map': '''
783
+ █████████
784
+ █ █
785
+ █ █
786
+ █ █
787
+ █ █
788
+ █ █
789
+ █ █
790
+ █ █
791
+ █████████''',
792
+ 'Hints': [
793
+ 'I wander what\'s behind that %*GREEN*%bookcase%*RESET*%.',
794
+ ],
795
+ },
796
+
745
797
  'Forest Clearing': {
746
798
  'room type': 'forest',
747
799
  'directions': {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.14.1
3
+ Version: 3.14.3
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=DJ-Y_qr_-xXMJbENgtLnWqxeIhbEEM7BXsAxpuhlh0Y,90063
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.3.dist-info/METADATA,sha256=SPQjKAkf36FRNbPEpCiRINLy8YArUmZPZog-tLxmtV0,1992
11
+ neelthee_mansion-3.14.3.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
+ neelthee_mansion-3.14.3.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
+ neelthee_mansion-3.14.3.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
+ neelthee_mansion-3.14.3.dist-info/RECORD,,