neelthee-mansion 3.3.1__tar.gz → 3.4.0__tar.gz
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-3.3.1 → neelthee_mansion-3.4.0}/PKG-INFO +1 -1
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/Mansion_of_Amnesia.py +5 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/Rooms.py +8 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/PKG-INFO +1 -1
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/setup.py +1 -1
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/README.md +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/Quests.py +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/__init__.py +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/__main__.py +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/all_game_utils.py +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/creatures.py +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/items.py +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion/utils.py +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/SOURCES.txt +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/dependency_links.txt +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/entry_points.txt +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/requires.txt +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/top_level.txt +0 -0
- {neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/setup.cfg +0 -0
@@ -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):
|
@@ -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': {
|
@@ -2,7 +2,7 @@ from setuptools import setup, find_packages
|
|
2
2
|
|
3
3
|
setup(
|
4
4
|
name='neelthee_mansion',
|
5
|
-
version='3.
|
5
|
+
version='3.4.0',
|
6
6
|
packages=find_packages(), # Automatically finds all packages and modules
|
7
7
|
install_requires=[
|
8
8
|
'wheel', 'psutil', 'playsound', 'requests', 'keyboard', 'pandas', 'validators', 'dicttoxml', 'pytz',
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/dependency_links.txt
RENAMED
File without changes
|
{neelthee_mansion-3.3.1 → neelthee_mansion-3.4.0}/neelthee_mansion.egg-info/entry_points.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|