diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/luxons/sevenwonders/game/api/Table.java | 2 | ||||
-rw-r--r-- | src/main/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElement.java | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/luxons/sevenwonders/game/api/Table.java b/src/main/java/org/luxons/sevenwonders/game/api/Table.java index 518f20c6..87187a75 100644 --- a/src/main/java/org/luxons/sevenwonders/game/api/Table.java +++ b/src/main/java/org/luxons/sevenwonders/game/api/Table.java @@ -70,6 +70,6 @@ public class Table { public void giveGoldForDiscarded(int playerIndex, int goldBonus) { Board board = boards.get(playerIndex); - board.setGold(board.getGold() + goldBonus); + board.addGold(goldBonus); } } diff --git a/src/main/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElement.java b/src/main/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElement.java index 05794702..e9f9fe5f 100644 --- a/src/main/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElement.java +++ b/src/main/java/org/luxons/sevenwonders/game/effects/BonusPerBoardElement.java @@ -65,7 +65,7 @@ public class BonusPerBoardElement implements Effect { public void apply(Table table, int playerIndex) { int goldGain = gold * computeNbOfMatchingElementsIn(table, playerIndex); Board board = table.getBoard(playerIndex); - board.setGold(board.getGold() + goldGain); + board.addGold(goldGain); } @Override |