neelthee-mansion 3.3.1__py3-none-any.whl → 3.4.0__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.
@@ -1012,6 +1012,11 @@ You must navigate the mansion and uncover the truth behind your captivity, all w
1012
1012
  while True:
1013
1013
  command()
1014
1014
 
1015
+ if 'random_events' in ROOMS[player.CURRENTROOM]:
1016
+ for event in ROOMS[player.CURRENTROOM]['random_events']:
1017
+ if isinstance(event, RandomEvent):
1018
+ event.check_and_trigger(player)
1019
+
1015
1020
  # Move guards
1016
1021
  for guard in guards:
1017
1022
  if isinstance(guard, Guard):
neelthee_mansion/Rooms.py CHANGED
@@ -224,6 +224,14 @@ ROOMS = {
224
224
  'I wonder if there is anything salvageable in the %*RED*%cupboards%*RESET*%.',
225
225
  'I should probably look around.',
226
226
  ],
227
+ 'random_events': [
228
+ RandomEvent(
229
+ name='Event name',
230
+ probability=0.15, # Adjust this for the probability of the event running (e.g., 0.1 is 10% chance)
231
+ condition=lambda player: True, # Condition under which the event can occur
232
+ effect=lambda player: ROOMS['Kitchen']['containers']['cupboards'].take_contents(), # Define the effect of the event
233
+ )
234
+ ],
227
235
  },
228
236
 
229
237
  'Dining Room': {
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: neelthee-mansion
3
- Version: 3.3.1
3
+ Version: 3.4.0
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=n1x4vtwczYcQ9mMrD8MZLGiEVwBOMJr8WzyHMkDStv0,45955
1
+ neelthee_mansion/Mansion_of_Amnesia.py,sha256=XZTu_1eRQKp8ksNdbkkXmIEm9Pl6ll5As1WPSKs_KCg,46190
2
2
  neelthee_mansion/Quests.py,sha256=q6VzR3mt9AYe29ACWZuf-suz4yOKrL946aJ493eQRS0,2611
3
- neelthee_mansion/Rooms.py,sha256=j8jJObdeTFGIn_G1a_saSx8C7ihWWYiJWAGfyAfY5u0,87314
3
+ neelthee_mansion/Rooms.py,sha256=bJrlA5UoY4ihmb-Bx2dbjK5skCbpj2CT-tc9KQRTnDA,87871
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=kSfzQSE5UmFiDV0eDsTXCk-LQwZIyY5Rwsyh5Uhropw,14826
8
8
  neelthee_mansion/items.py,sha256=ysXxbGTfVSW9gc8N4uGEZlQ-_Nsv2eFjHdfIBUGxBNQ,5101
9
9
  neelthee_mansion/utils.py,sha256=PhFBDQXQoSNHpBUd0NKhP0KcclXK5Mho0qGnrpKAbe0,12187
10
- neelthee_mansion-3.3.1.dist-info/METADATA,sha256=o0Wti0QOa-OkGfYlNq0but3Q0Fhn5edcBp5DaBbetJE,1991
11
- neelthee_mansion-3.3.1.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
- neelthee_mansion-3.3.1.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
- neelthee_mansion-3.3.1.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
- neelthee_mansion-3.3.1.dist-info/RECORD,,
10
+ neelthee_mansion-3.4.0.dist-info/METADATA,sha256=j9-4zpHjSs8oGOrxgfnQEALl2PoA5GB1iIoJsQkrZ-c,1991
11
+ neelthee_mansion-3.4.0.dist-info/WHEEL,sha256=eOLhNAGa2EW3wWl_TU484h7q1UNgy0JXjjoqKoxAAQc,92
12
+ neelthee_mansion-3.4.0.dist-info/entry_points.txt,sha256=j5ScTTyIidFhmT3F6hcX9pnlom4cJdDmfe26BmM6Igo,56
13
+ neelthee_mansion-3.4.0.dist-info/top_level.txt,sha256=woQImQewylhly5Rb24HwPEGMxPY6do_PaUwGd5BNLOM,17
14
+ neelthee_mansion-3.4.0.dist-info/RECORD,,