summaryrefslogtreecommitdiff
path: root/backend/src/main
diff options
context:
space:
mode:
authorJoffrey BION <joffrey.bion@gmail.com>2017-05-10 07:39:03 +0200
committerJoffrey BION <joffrey.bion@gmail.com>2017-05-10 07:39:03 +0200
commit0ca787b3315e8074483895b428aaa1c84c3dc512 (patch)
treec6ccb778d045eb937a1e2d63c04ad4f15ce57840 /backend/src/main
parentRefac requirement-checking methods (diff)
downloadseven-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.java2
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;
bgstack15