Skip to content

Commit

Permalink
sc2: Making victory cache locations send in order
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMarinets committed Dec 20, 2024
1 parent 13697fd commit 7ca1729
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions worlds/sc2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1678,11 +1678,11 @@ async def on_step(self, iteration: int):
if not send_victory or self.ctx.slot_data_version >= 4:
print("Mission Completed")
location_ids = self.ctx.mission_id_to_location_ids[self.mission_id]
victory_locations += [
victory_locations += sorted([
get_location_id(self.mission_id, location_id)
for location_id in location_ids
if (location_id % VICTORY_MODULO) >= VICTORY_CACHE_OFFSET
]
])
await self.ctx.send_msgs(
[{"cmd": 'LocationChecks',
"locations": victory_locations}])
Expand Down

0 comments on commit 7ca1729

Please sign in to comment.