SC2: fix Moebius Factor rescue condition (#882)
This commit is contained in:
		
							parent
							
								
									eb5ba72cfc
								
							
						
					
					
						commit
						a378d62dfd
					
				| 
						 | 
					@ -103,19 +103,19 @@ def get_locations(world: Optional[MultiWorld], player: Optional[int]) -> Tuple[L
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: Victory", SC2WOL_LOC_ID_OFFSET + 1000,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: Victory", SC2WOL_LOC_ID_OFFSET + 1000,
 | 
				
			||||||
                     lambda state: state._sc2wol_has_air(world, player)),
 | 
					                     lambda state: state._sc2wol_has_air(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: 1st Data Core ", SC2WOL_LOC_ID_OFFSET + 1001,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: 1st Data Core ", SC2WOL_LOC_ID_OFFSET + 1001,
 | 
				
			||||||
                     lambda state: state._sc2wol_has_air(world, player) or True),
 | 
					                     lambda state: True),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: 2nd Data Core", SC2WOL_LOC_ID_OFFSET + 1002,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: 2nd Data Core", SC2WOL_LOC_ID_OFFSET + 1002,
 | 
				
			||||||
                     lambda state: state._sc2wol_has_air(world, player)),
 | 
					                     lambda state: state._sc2wol_has_air(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: South Rescue", SC2WOL_LOC_ID_OFFSET + 1003,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: South Rescue", SC2WOL_LOC_ID_OFFSET + 1003,
 | 
				
			||||||
                     lambda state: state._sc2wol_able_to_rescue(world, player) or True),
 | 
					                     lambda state: state._sc2wol_able_to_rescue(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: Wall Rescue", SC2WOL_LOC_ID_OFFSET + 1004,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: Wall Rescue", SC2WOL_LOC_ID_OFFSET + 1004,
 | 
				
			||||||
                     lambda state: state._sc2wol_able_to_rescue(world, player) or True),
 | 
					                     lambda state: state._sc2wol_able_to_rescue(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: Mid Rescue", SC2WOL_LOC_ID_OFFSET + 1005,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: Mid Rescue", SC2WOL_LOC_ID_OFFSET + 1005,
 | 
				
			||||||
                     lambda state: state._sc2wol_able_to_rescue(world, player) or True),
 | 
					                     lambda state: state._sc2wol_able_to_rescue(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: Nydus Roof Rescue", SC2WOL_LOC_ID_OFFSET + 1006,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: Nydus Roof Rescue", SC2WOL_LOC_ID_OFFSET + 1006,
 | 
				
			||||||
                     lambda state: state._sc2wol_able_to_rescue(world, player) or True),
 | 
					                     lambda state: state._sc2wol_able_to_rescue(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: Alive Inside Rescue", SC2WOL_LOC_ID_OFFSET + 1007,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: Alive Inside Rescue", SC2WOL_LOC_ID_OFFSET + 1007,
 | 
				
			||||||
                     lambda state: state._sc2wol_able_to_rescue(world, player) or True),
 | 
					                     lambda state: state._sc2wol_able_to_rescue(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "The Moebius Factor: Brutalisk", SC2WOL_LOC_ID_OFFSET + 1008,
 | 
					        LocationData("The Moebius Factor", "The Moebius Factor: Brutalisk", SC2WOL_LOC_ID_OFFSET + 1008,
 | 
				
			||||||
                     lambda state: state._sc2wol_has_air(world, player)),
 | 
					                     lambda state: state._sc2wol_has_air(world, player)),
 | 
				
			||||||
        LocationData("The Moebius Factor", "Beat The Moebius Factor", None,
 | 
					        LocationData("The Moebius Factor", "Beat The Moebius Factor", None,
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -37,7 +37,7 @@ class SC2WoLLogic(LogicMixin):
 | 
				
			||||||
                self.has_all({'Reaper', "G-4 Clusterbomb"}, player) or self.has_all({'Spectre', 'Psionic Lash'}, player))
 | 
					                self.has_all({'Reaper', "G-4 Clusterbomb"}, player) or self.has_all({'Spectre', 'Psionic Lash'}, player))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _sc2wol_able_to_rescue(self, world: MultiWorld, player: int) -> bool:
 | 
					    def _sc2wol_able_to_rescue(self, world: MultiWorld, player: int) -> bool:
 | 
				
			||||||
        return self.has_any({'Medivac', 'Hercules', 'Raven', 'Orbital Strike'}, player)
 | 
					        return self.has_any({'Medivac', 'Hercules', 'Raven', 'Viking'}, player)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    def _sc2wol_has_protoss_common_units(self, world: MultiWorld, player: int) -> bool:
 | 
					    def _sc2wol_has_protoss_common_units(self, world: MultiWorld, player: int) -> bool:
 | 
				
			||||||
        return self.has_any({'Zealot', 'Immortal', 'Stalker', 'Dark Templar'}, player)
 | 
					        return self.has_any({'Zealot', 'Immortal', 'Stalker', 'Dark Templar'}, player)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue