SC2: Logic for All-In, may need further refinement

This commit is contained in:
Magnemania
2022-10-04 12:51:43 -04:00
parent e668ff3c1e
commit b3ae346fab
+3 -2
View File
@@ -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)