Skip to content

Commit

Permalink
Fix grammar in bid place delegate errors messages. (#11822)
Browse files Browse the repository at this point in the history
  • Loading branch information
asvitkine authored Jul 26, 2023
1 parent 8214b62 commit 9572dea
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,27 +39,27 @@ protected String canProduce(
// we can place if no enemy units and its water
if (to.isWater()) {
if (units.stream().anyMatch(Matches.unitIsLand())) {
return "Cant place land units at sea";
return "Can't place land units at sea";
} else if (to.anyUnitsMatch(Matches.enemyUnit(player))) {
return "Cant place in sea zone containing enemy units";
return "Can't place in sea zone containing enemy units";
} else if (!to.anyUnitsMatch(Matches.unitIsOwnedBy(player))) {
return "Cant place in sea zone that does not contain a unit owned by you";
return "Can't place in sea zone that does not contain a unit owned by you";
} else {
return null;
}
}

// we can place on territories we own
if (units.stream().anyMatch(Matches.unitIsSea())) {
return "Cant place sea units on land";
return "Can't place sea units on land";
} else if (!to.isOwnedBy(player)) {
final PlayerAttachment pa = PlayerAttachment.get(to.getOwner());
if (pa != null && pa.getGiveUnitControl().contains(player)) {
return null;
} else if (to.anyUnitsMatch(Matches.unitIsOwnedBy(player))) {
return null;
}
return "You dont own " + to.getName();
return "You don't own " + to.getName();
} else {
return null;
}
Expand Down

0 comments on commit 9572dea

Please sign in to comment.