summaryrefslogtreecommitdiffstats
path: root/core/src/ch/asynk/tankontank
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2014-09-25 23:20:36 +0200
committerJérémy Zurcher <jeremy@asynk.ch>2014-09-25 23:20:36 +0200
commitb75c7dd6a5766016fe882a32002ff142e18f216f (patch)
treefa4a68976fcb481dd387e8bfcff2a900b23a2677 /core/src/ch/asynk/tankontank
parent1385a0c70cc5a584dcbd070c1fb98c9175612212 (diff)
downloadRustAndDust-b75c7dd6a5766016fe882a32002ff142e18f216f.zip
RustAndDust-b75c7dd6a5766016fe882a32002ff142e18f216f.tar.gz
HT have range + 1 if on hill
Diffstat (limited to 'core/src/ch/asynk/tankontank')
-rw-r--r--core/src/ch/asynk/tankontank/game/Unit.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/src/ch/asynk/tankontank/game/Unit.java b/core/src/ch/asynk/tankontank/game/Unit.java
index 0a69249..59f6d32 100644
--- a/core/src/ch/asynk/tankontank/game/Unit.java
+++ b/core/src/ch/asynk/tankontank/game/Unit.java
@@ -34,6 +34,7 @@ public class Unit extends HeadedPawn
@Override
public int getAttackRangeFrom(Tile tile)
{
+ if (ht && ((Hex) tile).terrain == Hex.Terrain.HILLS) return rng + 1;
return rng;
}