Compare commits

..

3 Commits

Author SHA1 Message Date
d119e71116 Only reseed the door at the beginning of the day/night
It's weird that people teleport when you open the menu twice in a row
2023-12-17 10:15:14 +01:00
b439246d6d Better constant and random management in door/summon
Using a local __choice like in map to avoid unnecessary inconstantness
This is same-behavior, but I would be in favor of reseeding only at the beginning of the day/night instead of every time the summon menu is opened (next commit)
2023-12-17 10:13:58 +01:00
ea138023c7 Simpler random reseeding
Constructing an entire new random object is not necessary, calling seed is enough
2023-12-17 10:13:14 +01:00
2 changed files with 71 additions and 60 deletions

View File

@ -86,7 +86,8 @@ label day_start:
# Randomisers
random_gold = renpy.random.randint(8, 40)
map_randomobj = renpy.random.Random()
map_randomobj.seed()
door_randomobj.seed()
# Send salary every 7th day
if game.day % 7 == 0:
@ -194,7 +195,8 @@ label night_start:
# Randomisers
random_gold = renpy.random.randint(8, 40)
map_randomobj = renpy.random.Random()
map_randomobj.seed()
door_randomobj.seed()
# Update map locations
call set_all_map_locations

File diff suppressed because it is too large Load Diff