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
|
# Randomisers
|
||||||
random_gold = renpy.random.randint(8, 40)
|
random_gold = renpy.random.randint(8, 40)
|
||||||
map_randomobj = renpy.random.Random()
|
map_randomobj.seed()
|
||||||
|
door_randomobj.seed()
|
||||||
|
|
||||||
# Send salary every 7th day
|
# Send salary every 7th day
|
||||||
if game.day % 7 == 0:
|
if game.day % 7 == 0:
|
||||||
@ -194,7 +195,8 @@ 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()
|
||||||
|
door_randomobj.seed()
|
||||||
|
|
||||||
# Update map locations
|
# Update map locations
|
||||||
call set_all_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)
|
show screen shop_item(xx, yy)
|
||||||
|
|
||||||
label .after_init:
|
label .after_init:
|
||||||
$ renpy.dynamix(__choice = ui.interact())
|
$ renpy.dynamic(__choice = ui.interact())
|
||||||
|
|
||||||
if __choice[0] == "select":
|
if __choice[0] == "select":
|
||||||
$ current_item = __choice[1]
|
$ current_item = __choice[1]
|
||||||
|
Loading…
Reference in New Issue
Block a user