From 10460912e3d51da09b6d2489e1576480ffa571e5 Mon Sep 17 00:00:00 2001 From: Marek Rusinowski Date: Thu, 5 Sep 2024 19:57:43 +0200 Subject: [PATCH] Add special synthetic maplist --- scripts/js/src/check_startpos.ts | 4 ++++ scripts/py/gen_nextmap_maplists.py | 2 ++ 2 files changed, 6 insertions(+) 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