mirror of
https://github.com/MarioSpore/Grinch-AP.git
synced 2025-10-21 12:11:33 -06:00
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:
@@ -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()
|
||||
|
Reference in New Issue
Block a user