Skip to content

Commit

Permalink
Add special synthetic maplist
Browse files Browse the repository at this point in the history
  • Loading branch information
p2004a committed Sep 5, 2024
1 parent d127455 commit 1046091
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/js/src/check_startpos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<number, Set<number>> = new Map();
Expand Down
2 changes: 2 additions & 0 deletions scripts/py/gen_nextmap_maplists.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1046091

Please sign in to comment.