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

View File

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