diff --git a/src/assets/ba_data/python/baclassic/_appsubsystem.py b/src/assets/ba_data/python/baclassic/_appsubsystem.py index f2d0527f..20bfbcf6 100644 --- a/src/assets/ba_data/python/baclassic/_appsubsystem.py +++ b/src/assets/ba_data/python/baclassic/_appsubsystem.py @@ -178,27 +178,7 @@ class ClassicAppSubsystem(babase.AppSubsystem): if not env.debug and not env.test and not plus.is_blessed(): babase.screenmessage('WARNING: NON-BLESSED BUILD', color=(1, 0, 0)) - # FIXME: This should not be hard-coded. - for maptype in [ - stdmaps.HockeyStadium, - stdmaps.FootballStadium, - stdmaps.Bridgit, - stdmaps.BigG, - stdmaps.Roundabout, - stdmaps.MonkeyFace, - stdmaps.ZigZag, - stdmaps.ThePad, - stdmaps.DoomShroom, - stdmaps.LakeFrigid, - stdmaps.TipTop, - stdmaps.CragCastle, - stdmaps.TowerD, - stdmaps.HappyThoughts, - stdmaps.StepRightUp, - stdmaps.Courtyard, - stdmaps.Rampage, - ]: - bascenev1.register_map(maptype) + stdmaps.register_all_maps() spazappearance.register_appearances() bascenev1.init_campaigns() diff --git a/src/assets/ba_data/python/bascenev1lib/maps.py b/src/assets/ba_data/python/bascenev1lib/maps.py index 04f5b361..6646b722 100644 --- a/src/assets/ba_data/python/bascenev1lib/maps.py +++ b/src/assets/ba_data/python/bascenev1lib/maps.py @@ -15,6 +15,30 @@ if TYPE_CHECKING: from typing import Any +def register_all_maps() -> None: + """Registering all maps.""" + for maptype in [ + HockeyStadium, + FootballStadium, + Bridgit, + BigG, + Roundabout, + MonkeyFace, + ZigZag, + ThePad, + DoomShroom, + LakeFrigid, + TipTop, + CragCastle, + TowerD, + HappyThoughts, + StepRightUp, + Courtyard, + Rampage, + ]: + bs.register_map(maptype) + + class HockeyStadium(bs.Map): """Stadium map used for ice hockey games."""