Permalink
Browse files

cloister library now subtracts nickels, wine, and whiskey, in additio…

…n to pennies.
  • Loading branch information...
1 parent ef1a398 commit 550f33d33fb5672f274a1a176ef8a33bb246078b @philihp committed May 2, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/main/java/com/philihp/weblabora/model/building/CloisterLibrary.java
@@ -26,8 +26,8 @@ public CloisterLibrary() {
public void use(Board board, UsageParamDouble param) throws WeblaboraException {
Player player = board.getPlayer(board.getActivePlayer());
- player.addBooks(param.getPenny());
- player.subtractCoins(param.getPenny());
+ player.addBooks(Math.min(3, param.getCoins()));
+ player.subtractCoins(Math.min(3, param.getCoins()));
if(param.getSecondary().getBook() == 1) {
player.subtractBook(1);

0 comments on commit 550f33d

Please sign in to comment.