Skip to content

Commit

Permalink
sc2: Fixing more imports to be relative in sc2 world
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMarinets committed Nov 11, 2024
1 parent b3f09b6 commit a5ddfb6
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion worlds/sc2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
ItemData, kerrigan_actives, kerrigan_passives,
not_balanced_starting_units, WEAPON_ARMOR_UPGRADE_MAX_LEVEL, ZergItemType,
)
from . import item
from . import location_groups
from .item import FilterItem, ItemFilterFlags, StarcraftItem, item_groups, item_names, item_tables
from .locations import get_locations, DEFAULT_LOCATION_LIST, get_location_types, get_location_flags, get_plando_locations
Expand Down
4 changes: 2 additions & 2 deletions worlds/sc2/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@
# CommonClient import first to trigger ModuleUpdater
from CommonClient import CommonContext, server_loop, ClientCommandProcessor, gui_enabled, get_base_parser
from Utils import init_logging, is_windows, async_start
from worlds.sc2.item import item_names
from worlds.sc2.item.item_groups import item_name_groups, unlisted_item_name_groups
from .item import item_names
from .item.item_groups import item_name_groups, unlisted_item_name_groups
from . import options
from .options import (
MissionOrder, KerriganPrimalStatus, kerrigan_unit_available, KerriganPresence, EnableMorphling,
Expand Down
4 changes: 3 additions & 1 deletion worlds/sc2/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@
from Options import *
from Utils import get_fuzzy_results
from BaseClasses import PlandoOptions
from .mission_tables import SC2Campaign, SC2Mission, lookup_name_to_mission, MissionPools, get_missions_with_any_flags_in_list, \
from .mission_tables import (
SC2Campaign, SC2Mission, lookup_name_to_mission, MissionPools, get_missions_with_any_flags_in_list,
campaign_mission_table, SC2Race, MissionFlag
)
from .mission_groups import mission_groups, MissionGroupNames
from .mission_order.options import CustomMissionOrder
from .item import item_names
Expand Down
2 changes: 1 addition & 1 deletion worlds/sc2/rules.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
GrantStoryTech, GrantStoryLevels, TakeOverAIAllies, SpearOfAdunAutonomouslyCastAbilityPresence,
get_enabled_campaigns, MissionOrder, EnableMorphling, get_enabled_races
)
from worlds.sc2.item.item_tables import (
from .item.item_tables import (
tvx_defense_ratings, tvz_defense_ratings, kerrigan_actives, tvx_air_defense_ratings,
kerrigan_levels, get_full_item_list, zvx_air_defense_ratings, zvx_defense_ratings, pvx_defense_ratings,
pvz_defense_ratings, no_logic_basic_units, advanced_basic_units, basic_units, upgrade_bundle_inverted_lookup, WEAPON_ARMOR_UPGRADE_MAX_LEVEL
Expand Down

0 comments on commit a5ddfb6

Please sign in to comment.