fix payout in Method placeInitialSettlement in SiedlerGame
This commit is contained in:
		
							parent
							
								
									f6865451a6
								
							
						
					
					
						commit
						212acc0fc5
					
				| 
						 | 
				
			
			@ -152,9 +152,11 @@ public class SiedlerGame {
 | 
			
		|||
            return false;
 | 
			
		||||
        }
 | 
			
		||||
        board.setCorner(position, new Settlement(allPlayers.get(activePlayer).getFaction()));
 | 
			
		||||
        List<Config.Land> lands = board.getLandsForCorner(position);
 | 
			
		||||
        for (Config.Land land:lands){
 | 
			
		||||
            allPlayers.get(activePlayer).addResource(land.getResource(), 1);
 | 
			
		||||
            if(payout){
 | 
			
		||||
            List<Config.Land> lands = board.getLandsForCorner(position);
 | 
			
		||||
            for (Config.Land land:lands){
 | 
			
		||||
                allPlayers.get(activePlayer).addResource(land.getResource(), 1);
 | 
			
		||||
            }
 | 
			
		||||
        }
 | 
			
		||||
        return true;
 | 
			
		||||
    }
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue