SC2: Various bugfixes (#1267)

* SC2: Fixed nondeterminism resulting from early unit placement

* SC2: Renamed "world" arguments to "multiworld"

* SC2: Fixed All-In Ground including anti-air in defense score, fixed error in beats_protoss_deathball

* SC2: Fixed No Logic using logic on Beat events

* SC2: Fixed /unfinished command failing when All-In available
This commit is contained in:
Magnemania
2022-12-11 14:46:24 -05:00
committed by GitHub
parent e3f169b4c3
commit e71ea94fe5
9 changed files with 290 additions and 282 deletions

View File

@@ -130,8 +130,8 @@ sc2wol_options: Dict[str, Option] = {
}
def get_option_value(world: MultiWorld, player: int, name: str) -> int:
option = getattr(world, name, None)
def get_option_value(multiworld: MultiWorld, player: int, name: str) -> int:
option = getattr(multiworld, name, None)
if option is None:
return 0
@@ -139,8 +139,8 @@ def get_option_value(world: MultiWorld, player: int, name: str) -> int:
return int(option[player].value)
def get_option_set_value(world: MultiWorld, player: int, name: str) -> set:
option = getattr(world, name, None)
def get_option_set_value(multiworld: MultiWorld, player: int, name: str) -> set:
option = getattr(multiworld, name, None)
if option is None:
return set()