fix ItemPlando defaults
This commit is contained in:
parent
4fb8067b5e
commit
e2075686c2
1
Main.py
1
Main.py
|
@ -457,6 +457,7 @@ def copy_world(world):
|
||||||
ret.timer = world.timer.copy()
|
ret.timer = world.timer.copy()
|
||||||
ret.shufflepots = world.shufflepots.copy()
|
ret.shufflepots = world.shufflepots.copy()
|
||||||
ret.shuffle_prizes = world.shuffle_prizes.copy()
|
ret.shuffle_prizes = world.shuffle_prizes.copy()
|
||||||
|
ret.shop_shuffle = world.shop_shuffle.copy()
|
||||||
ret.dark_room_logic = world.dark_room_logic.copy()
|
ret.dark_room_logic = world.dark_room_logic.copy()
|
||||||
ret.restrict_dungeon_item_on_boss = world.restrict_dungeon_item_on_boss.copy()
|
ret.restrict_dungeon_item_on_boss = world.restrict_dungeon_item_on_boss.copy()
|
||||||
|
|
||||||
|
|
|
@ -572,9 +572,9 @@ def roll_settings(weights, plando_options: typing.Set[str] = frozenset(("bosses"
|
||||||
options = weights.get("plando_items", [])
|
options = weights.get("plando_items", [])
|
||||||
for placement in options:
|
for placement in options:
|
||||||
if roll_percentage(get_choice("percentage", placement, 100)):
|
if roll_percentage(get_choice("percentage", placement, 100)):
|
||||||
from_pool = get_choice("from_pool", placement, PlandoItem.from_pool)
|
from_pool = get_choice("from_pool", placement, PlandoItem._field_defaults["from_pool"])
|
||||||
location_world = get_choice("world", placement, PlandoItem.world)
|
location_world = get_choice("world", placement, PlandoItem._field_defaults["world"])
|
||||||
force = str(get_choice("force", placement, PlandoItem.force)).lower()
|
force = str(get_choice("force", placement, PlandoItem._field_defaults["force"])).lower()
|
||||||
if "items" in placement and "locations" in placement:
|
if "items" in placement and "locations" in placement:
|
||||||
items = placement["items"]
|
items = placement["items"]
|
||||||
locations = placement["locations"]
|
locations = placement["locations"]
|
||||||
|
|
Loading…
Reference in New Issue