From b3ae346fab59e18b95b92086b6e42174a54b728f Mon Sep 17 00:00:00 2001 From: Magnemania Date: Tue, 4 Oct 2022 12:51:43 -0400 Subject: [PATCH] SC2: Logic for All-In, may need further refinement --- worlds/sc2wol/Locations.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/worlds/sc2wol/Locations.py b/worlds/sc2wol/Locations.py index f9bd8dcb8d..0bff141670 100644 --- a/worlds/sc2wol/Locations.py +++ b/worlds/sc2wol/Locations.py @@ -246,7 +246,9 @@ def get_locations(world: Optional[MultiWorld], player: Optional[int]) -> Tuple[L lambda state: state._sc2wol_has_competent_comp(world, player)), LocationData("Shatter the Sky", "Shatter the Sky: Leviathan", SC2WOL_LOC_ID_OFFSET + 2805, lambda state: state._sc2wol_has_competent_comp(world, player)), - LocationData("All-In", "All-In: Victory", None) + LocationData("All-In", "All-In: Victory", None, + lambda state: state._sc2wol_has_competent_comp(world, player) and + state._sc2wol_has_heavy_defense(world, player)) ] beat_events = [] @@ -256,5 +258,4 @@ def get_locations(world: Optional[MultiWorld], player: Optional[int]) -> Tuple[L beat_events.append( location_data._replace(name="Beat " + location_data.name.rsplit(": ", 1)[0], code=None) ) - return tuple(location_table + beat_events)