diff --git a/scripts/js/src/check_startpos.ts b/scripts/js/src/check_startpos.ts index 227e33b..ce27c69 100644 --- a/scripts/js/src/check_startpos.ts +++ b/scripts/js/src/check_startpos.ts @@ -7,6 +7,10 @@ let error = false; const maps = await readMapList(); for (const map of Object.values(maps)) { if (!map.startPos) { + if (map.startPosActive) { + console.error(`startPosActive is set to true, but startPos not set`); + error = true; + } continue; } const confs: Map> = new Map(); diff --git a/scripts/py/gen_nextmap_maplists.py b/scripts/py/gen_nextmap_maplists.py index 3f3182b..9099901 100644 --- a/scripts/py/gen_nextmap_maplists.py +++ b/scripts/py/gen_nextmap_maplists.py @@ -22,6 +22,8 @@ def get_data(input_file): for map in contents.values(): for l in map["mapLists"]: map_lists[l].add(map["springName"]) + if map["startPosActive"]: + map_lists["withstartpos"].add(map["springName"]) if not map["inPool"] or "special" in map and map["special"] in ['Metal', 'No metal']: continue