Skip to content

Commit 33d8623

Browse files
Merge branch 'master' into public-release
2 parents ac7f8d5 + 62138a8 commit 33d8623

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

client/src/components/sidebar/map-editor/MapGenerator.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,12 @@ function verifyMap(map: CurrentMap, bodies: Bodies): string {
162162
}
163163

164164
for (const teamIdx of [0, 1]) {
165-
if (numPaintTowers[teamIdx] !== 2) {
166-
return `Expected exactly 2 ${TEAM_COLOR_NAMES[teamIdx]} paint towers, found ${numPaintTowers[teamIdx]}`
165+
if (numPaintTowers[teamIdx] !== 1) {
166+
return `Expected exactly 1 ${TEAM_COLOR_NAMES[teamIdx]} paint tower, found ${numPaintTowers[teamIdx]}`
167167
}
168168

169-
if (numMoneyTowers[teamIdx] !== 2) {
170-
return `Expected exactly 2 ${TEAM_COLOR_NAMES[teamIdx]} money towers, found ${numMoneyTowers[teamIdx]}`
169+
if (numMoneyTowers[teamIdx] !== 1) {
170+
return `Expected exactly 1 ${TEAM_COLOR_NAMES[teamIdx]} money tower, found ${numMoneyTowers[teamIdx]}`
171171
}
172172
}
173173

0 commit comments

Comments
 (0)