Random Object Refactoring and a bug fix (by
Gouvernathor)
This commit is contained in:
parent
9a088d22e1
commit
0597621c54
@ -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
@ -43,7 +43,7 @@ label shop_item_menu(xx=150, yy=90):
|
||||
show screen shop_item(xx, yy)
|
||||
|
||||
label .after_init:
|
||||
$ renpy.dynamix(__choice = ui.interact())
|
||||
$ renpy.dynamic(__choice = ui.interact())
|
||||
|
||||
if __choice[0] == "select":
|
||||
$ current_item = __choice[1]
|
||||
|
Loading…
Reference in New Issue
Block a user