diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 23:20:36 +0200 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-09-25 23:20:36 +0200 |
commit | b75c7dd6a5766016fe882a32002ff142e18f216f (patch) | |
tree | fa4a68976fcb481dd387e8bfcff2a900b23a2677 /core/src | |
parent | 1385a0c70cc5a584dcbd070c1fb98c9175612212 (diff) | |
download | RustAndDust-b75c7dd6a5766016fe882a32002ff142e18f216f.zip RustAndDust-b75c7dd6a5766016fe882a32002ff142e18f216f.tar.gz |
HT have range + 1 if on hill
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/Unit.java | 1 |
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; } |