diff options
author | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-10 07:39:03 +0200 |
---|---|---|
committer | Joffrey BION <joffrey.bion@gmail.com> | 2017-05-10 07:39:03 +0200 |
commit | 0ca787b3315e8074483895b428aaa1c84c3dc512 (patch) | |
tree | c6ccb778d045eb937a1e2d63c04ad4f15ce57840 /backend/src/main | |
parent | Refac requirement-checking methods (diff) | |
download | seven-wonders-0ca787b3315e8074483895b428aaa1c84c3dc512.tar.gz seven-wonders-0ca787b3315e8074483895b428aaa1c84c3dc512.tar.bz2 seven-wonders-0ca787b3315e8074483895b428aaa1c84c3dc512.zip |
Make BestPriceCalculator use the public production of the neighbours
It was incorrectly using the private production.
Diffstat (limited to 'backend/src/main')
-rw-r--r-- | backend/src/main/java/org/luxons/sevenwonders/game/resources/BestPriceCalculator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backend/src/main/java/org/luxons/sevenwonders/game/resources/BestPriceCalculator.java b/backend/src/main/java/org/luxons/sevenwonders/game/resources/BestPriceCalculator.java index df51fe4c..8fed41d1 100644 --- a/backend/src/main/java/org/luxons/sevenwonders/game/resources/BestPriceCalculator.java +++ b/backend/src/main/java/org/luxons/sevenwonders/game/resources/BestPriceCalculator.java @@ -29,7 +29,7 @@ public class BestPriceCalculator { for (Provider provider : providers) { Board providerBoard = table.getBoard(playerIndex, provider.getBoardPosition()); - ResourcePool pool = new ResourcePool(providerBoard.getProduction(), provider, rules); + ResourcePool pool = new ResourcePool(providerBoard.getPublicProduction(), provider, rules); pools.add(pool); } return pools; |