Skip to content

Commit

Permalink
SC2: Reserve word 16 for raceswap
Browse files Browse the repository at this point in the history
  • Loading branch information
EnvyDragon committed Jun 16, 2024
1 parent 59ae1ca commit 1fc6058
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions worlds/sc2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1094,6 +1094,7 @@ async def on_step(self, iteration: int):
kerrigan_options = calculate_kerrigan_options(self.ctx)
soa_options = caclulate_soa_options(self.ctx)
uncollected_objectives: typing.List[int] = self.get_uncollected_objectives()
mission_variant = 0 # temp value until generator logic is done
if self.ctx.difficulty_override >= 0:
difficulty = calc_difficulty(self.ctx.difficulty_override)
else:
Expand All @@ -1102,7 +1103,7 @@ async def on_step(self, iteration: int):
game_speed = self.ctx.game_speed_override
else:
game_speed = self.ctx.game_speed
await self.chat_send("?SetOptions {} {} {} {} {} {} {} {} {} {} {} {} {} {}".format(
await self.chat_send("?SetOptions {} {} {} {} {} {} {} {} {} {} {} {} {} {} {}".format(
difficulty,
self.ctx.generic_upgrade_research,
self.ctx.all_in_choice,
Expand All @@ -1116,7 +1117,8 @@ async def on_step(self, iteration: int):
self.ctx.mission_order,
1 if self.ctx.nova_covert_ops_only else 0,
self.ctx.grant_story_levels,
self.ctx.enable_morphling
self.ctx.enable_morphling,
mission_variant
))
await self.chat_send("?GiveResources {} {} {}".format(
start_items[SC2Race.ANY][0],
Expand Down

0 comments on commit 1fc6058

Please sign in to comment.