Fixed Rupee/Bomb logic in playthru

This commit is contained in:
codemann8
2022-10-24 19:34:35 -05:00
parent cf43762799
commit 20e99a27c5
2 changed files with 17 additions and 12 deletions

View File

@@ -552,6 +552,11 @@ def create_farm_locations(world, player):
# and hopefully access to more permanent farm locations
def create_and_fill_location(region_name, loc_description, item_name):
loc = world.get_location_unsafe(f'{region_name} {loc_description}', player)
if loc:
loc.access_rule = lambda state: True
world.spoiler.suppress_spoiler_locations.append(loc.name)
else:
region = world.get_region(region_name, player)
loc = Location(player, f'{region_name} {loc_description}', 0, region)
loc.type = LocationType.Logical
@@ -564,7 +569,6 @@ def create_farm_locations(world, player):
region.locations.append(loc)
world.dynamic_locations.append(loc)
return loc
from Rules import set_rule, add_rule, add_bunny_rule

View File

@@ -554,6 +554,7 @@ def copy_world(world):
from OverworldShuffle import categorize_world_regions
for player in range(1, world.players + 1):
categorize_world_regions(ret, player)
create_farm_locations(ret, player)
set_rules(ret, player)
return ret