diff options
Diffstat (limited to 'game-engine/src/main/java')
-rw-r--r-- | game-engine/src/main/java/org/luxons/sevenwonders/game/cards/Requirements.java | 2 | ||||
-rw-r--r-- | game-engine/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/game-engine/src/main/java/org/luxons/sevenwonders/game/cards/Requirements.java b/game-engine/src/main/java/org/luxons/sevenwonders/game/cards/Requirements.java index 93683ff8..3f9c4409 100644 --- a/game-engine/src/main/java/org/luxons/sevenwonders/game/cards/Requirements.java +++ b/game-engine/src/main/java/org/luxons/sevenwonders/game/cards/Requirements.java @@ -111,7 +111,7 @@ public class Requirements { }); } - void pay(Table table, int playerIndex, List<BoughtResources> boughtResources) { + public void pay(Table table, int playerIndex, List<BoughtResources> boughtResources) { table.getBoard(playerIndex).removeGold(gold); payBoughtResources(table, playerIndex, boughtResources); } diff --git a/game-engine/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java b/game-engine/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java index 89b20383..a53e2694 100644 --- a/game-engine/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java +++ b/game-engine/src/main/java/org/luxons/sevenwonders/game/wonders/WonderStage.java @@ -49,5 +49,6 @@ public class WonderStage { void activate(Table table, int playerIndex, List<BoughtResources> boughtResources) { effects.forEach(e -> e.apply(table, playerIndex)); + requirements.pay(table, playerIndex, boughtResources); } } |