Skip to content

Commit

Permalink
Attempt to fix games prior race-swaps
Browse files Browse the repository at this point in the history
  • Loading branch information
Ziktofel committed Jul 5, 2024
1 parent eeae936 commit b4429e2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions worlds/sc2/mission_tables.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,12 @@ class FillMission(NamedTuple):
lookup_name_to_mission: Dict[str, SC2Mission] = {
mission.mission_name: mission for mission in SC2Mission
}
for mission in SC2Mission:
if mission.id <= SC2Mission.END_GAME.id:
if '(' in mission.mission_name:
# Short names for non-race-swapped missions for client compatibility
short_name = mission.mission_name[:mission.mission_name.find(' (')]
lookup_name_to_mission[short_name] = mission

lookup_id_to_campaign: Dict[int, SC2Campaign] = {
campaign.id: campaign for campaign in SC2Campaign
Expand Down

0 comments on commit b4429e2

Please sign in to comment.