Skip to content

Commit

Permalink
Merge branch 'master' into public-release
Browse files Browse the repository at this point in the history
  • Loading branch information
TheApplePieGod committed Jan 7, 2025
2 parents ac7f8d5 + 62138a8 commit 33d8623
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions client/src/components/sidebar/map-editor/MapGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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]}`
}
}

Expand Down

0 comments on commit 33d8623

Please sign in to comment.