Skip to content

Commit

Permalink
Watchtowers, cound meeple bonus only from normal meeples
Browse files Browse the repository at this point in the history
  • Loading branch information
farin committed Nov 17, 2021
1 parent 4ee3022 commit f148667
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,15 @@

## upcoming

* responsive final stats
* improved tunnel tokens positions, artwork addon can defines tunnel shape and position
* fix bazaar - all tiles in auction are now random and choosen independently
* fix field score in final game statistics
* fix tile distribution dialog for connected clients when "hide remaining tiles cheat sheet" is enabled
* fix: Count of Carcassonne expansion can be added only once to game
* fix no feedback from "Load Setup From File" button (now switch to Tiles tab same as load on favorite setup)
* fix: Watchtowers meeple bonus is not count from special meeples
* classic artwork, several glitches and wrong shapes corrected
* artworks - shape difinition allows extended shape transformations and deriving shapes from others
* use webkit native websockets instead of ws library

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import com.jcloisterzone.event.PointsExpression;
import com.jcloisterzone.event.ScoreEvent;
import com.jcloisterzone.feature.*;
import com.jcloisterzone.figure.Follower;
import com.jcloisterzone.figure.Meeple;
import com.jcloisterzone.game.Capability;
import com.jcloisterzone.game.state.GameState;
Expand Down Expand Up @@ -94,7 +95,8 @@ public GameState beforeCompletableScore(GameState state, java.util.Set<Completab
exprName = "roads";
break;
case "meeple":
count = state.getDeployedMeeples().values().filter(fp -> {
count = state.getDeployedMeeples().filter((m, fp) -> {
if (!(m instanceof Follower)) return false;
Position mpos = fp.getPosition();
return Math.abs(pos.x - mpos.x) <= 1 && Math.abs(pos.y - mpos.y) <= 1;
}).length();
Expand Down

0 comments on commit f148667

Please sign in to comment.