Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions randomizer/Settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
from randomizer.Prices import CompleteVanillaPrices, RandomizePrices, VanillaPrices
from randomizer.SettingStrings import encrypt_settings_string_enum
from randomizer.ShuffleBosses import (
BossMapList,

Check failure

Code scanning / CodeQL

Module-level cyclic import Error

'BossMapList' may not be defined if module
randomizer.ShuffleBosses
is imported before module
randomizer.Settings
, as the
definition
of BossMapList occurs after the cyclic
import
of randomizer.Settings.
KRoolMaps,

Check failure

Code scanning / CodeQL

Module-level cyclic import Error

'KRoolMaps' may not be defined if module
randomizer.ShuffleBosses
is imported before module
randomizer.Settings
, as the
definition
of KRoolMaps occurs after the cyclic
import
of randomizer.Settings.
ShuffleBosses,
ShuffleBossKongs,
ShuffleKKOPhaseOrder,
Expand Down Expand Up @@ -1773,6 +1775,9 @@
Maps.CastleBoss,
]
)
# This guard is for backwards compatibility
if not self.bosses_selected:
self.bosses_selected = BossMapList.copy() + KRoolMaps.copy()
phases = [x for x in phases if x in self.bosses_selected]
possible_phases = phases.copy()
if self.krool_phase_order_rando:
Expand Down
Loading