Skip to content

Commit

Permalink
Fix level editor biomes for arena stages in the vanilla editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaythebusinessgoose committed Dec 19, 2023
1 parent c815b79 commit dd98075
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions src/modlunky2/ui/levels/shared/biomes.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,20 @@ def get_biome_for_level(
return BIOME.VOLCANA
elif lvl.startswith("volcano") or lvl.endswith("_volcano.lvl"):
return BIOME.VOLCANA

dm_themes = [
BIOME.DWELLING,
BIOME.JUNGLE,
BIOME.VOLCANA,
BIOME.TIDE_POOL,
BIOME.TEMPLE,
BIOME.ICE_CAVES,
BIOME.NEO_BABYLON,
BIOME.SUNKEN_CITY,
]
for x, themeselect in enumerate(dm_themes):
if lvl.startswith("dm" + str(x + 1)):
return themeselect
return BIOME.DWELLING

# Used for selecting a theme to get the theme code that
Expand Down

0 comments on commit dd98075

Please sign in to comment.