From d6f0fa181ca63b0998bf0609d46b1ed2ee69a7b5 Mon Sep 17 00:00:00 2001 From: EnvyDragon <138727357+EnvyDragon@users.noreply.github.com> Date: Sun, 21 Jan 2024 14:19:21 -0500 Subject: [PATCH] SC2: using enum for campaign check --- worlds/sc2/ClientGui.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worlds/sc2/ClientGui.py b/worlds/sc2/ClientGui.py index a0d09c0c282b..167583fd1ecb 100644 --- a/worlds/sc2/ClientGui.py +++ b/worlds/sc2/ClientGui.py @@ -15,7 +15,7 @@ from worlds.sc2.Client import SC2Context, calc_unfinished_missions, parse_unlock from worlds.sc2.MissionTables import lookup_id_to_mission, lookup_name_to_mission, campaign_race_exceptions, \ - SC2Mission, SC2Race + SC2Mission, SC2Race, SC2Campaign from worlds.sc2.Locations import LocationType, lookup_location_id_to_type from worlds.sc2.Options import LocationInclusion from worlds.sc2 import SC2World, get_first_mission @@ -144,7 +144,7 @@ def build_mission_table(self, dt) -> None: campaign_layout_height = (max_mission_count + 2) * 50 multi_campaign_layout_height += campaign_layout_height campaign_layout = CampaignLayout(size_hint_y=None, height=campaign_layout_height) - if campaign.campaign_name != "Global": + if campaign != SC2Campaign.GLOBAL: campaign_layout.add_widget( Label(text=campaign.campaign_name, size_hint_y=None, height=25, outline_width=1) )