Simpler random reseeding

Constructing an entire new random object is not necessary, calling seed is enough
This commit is contained in:
Asriel Senna 2023-12-17 10:13:14 +01:00
parent 294cb2c5ee
commit ea138023c7
1 changed files with 2 additions and 2 deletions

View File

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