summaryrefslogtreecommitdiffstats
path: root/test/src/ch
diff options
context:
space:
mode:
Diffstat (limited to 'test/src/ch')
-rw-r--r--test/src/ch/asynk/gdx/boardgame/test/HexScreen.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java b/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java
index 0a1494c..e60ebe2 100644
--- a/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java
+++ b/test/src/ch/asynk/gdx/boardgame/test/HexScreen.java
@@ -47,9 +47,10 @@ class Unit extends Piece
@Override public int moveCost(Tile from, Tile to, Orientation orientation)
{
+ Terrain dst = ((Hex)to).terrain;
+ if (dst == Terrain.HILL) return 3;
if (!hardTarget) return 1;
if (orientation.belongsTo(((Hex)from).roads)) return 1;
- Terrain dst = ((Hex)to).terrain;
if (dst.difficult()) return 2;
return 1;
}