fix payout in Method placeInitialSettlement in SiedlerGame

This commit is contained in:
schrom01 2021-12-04 15:39:25 +01:00
parent f6865451a6
commit 212acc0fc5
1 changed files with 5 additions and 3 deletions

View File

@ -152,9 +152,11 @@ public class SiedlerGame {
return false; return false;
} }
board.setCorner(position, new Settlement(allPlayers.get(activePlayer).getFaction())); board.setCorner(position, new Settlement(allPlayers.get(activePlayer).getFaction()));
List<Config.Land> lands = board.getLandsForCorner(position); if(payout){
for (Config.Land land:lands){ List<Config.Land> lands = board.getLandsForCorner(position);
allPlayers.get(activePlayer).addResource(land.getResource(), 1); for (Config.Land land:lands){
allPlayers.get(activePlayer).addResource(land.getResource(), 1);
}
} }
return true; return true;
} }