From 62138a85ece5db2a523358dbb29f34f5633af51e Mon Sep 17 00:00:00 2001 From: TheApplePieGod Date: Tue, 7 Jan 2025 12:41:23 -0500 Subject: [PATCH] Fix map tower check --- client/src/components/sidebar/map-editor/MapGenerator.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/components/sidebar/map-editor/MapGenerator.ts b/client/src/components/sidebar/map-editor/MapGenerator.ts index dcaa1ca9..07c17634 100644 --- a/client/src/components/sidebar/map-editor/MapGenerator.ts +++ b/client/src/components/sidebar/map-editor/MapGenerator.ts @@ -162,12 +162,12 @@ function verifyMap(map: CurrentMap, bodies: Bodies): string { } for (const teamIdx of [0, 1]) { - if (numPaintTowers[teamIdx] !== 2) { - return `Expected exactly 2 ${TEAM_COLOR_NAMES[teamIdx]} paint towers, found ${numPaintTowers[teamIdx]}` + if (numPaintTowers[teamIdx] !== 1) { + return `Expected exactly 1 ${TEAM_COLOR_NAMES[teamIdx]} paint tower, found ${numPaintTowers[teamIdx]}` } - if (numMoneyTowers[teamIdx] !== 2) { - return `Expected exactly 2 ${TEAM_COLOR_NAMES[teamIdx]} money towers, found ${numMoneyTowers[teamIdx]}` + if (numMoneyTowers[teamIdx] !== 1) { + return `Expected exactly 1 ${TEAM_COLOR_NAMES[teamIdx]} money tower, found ${numMoneyTowers[teamIdx]}` } }