diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-19 11:40:47 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2014-12-19 11:40:47 +0100 |
commit | 5fdc83f798fdf1f9e47a3bdbb4fefd3159d3939d (patch) | |
tree | 0df73ad6023ddc20fe2e4b91cb9d74494842158e /core/src | |
parent | 4734056f1125220389348b7f09c0ce7db4e76e02 (diff) | |
download | RustAndDust-5fdc83f798fdf1f9e47a3bdbb4fefd3159d3939d.zip RustAndDust-5fdc83f798fdf1f9e47a3bdbb4fefd3159d3939d.tar.gz |
Factory: use game.config.regularPawns for US sherman
Diffstat (limited to 'core/src')
-rw-r--r-- | core/src/ch/asynk/tankontank/game/battles/Factory.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/core/src/ch/asynk/tankontank/game/battles/Factory.java b/core/src/ch/asynk/tankontank/game/battles/Factory.java index 05e53a7..fc3f2cb 100644 --- a/core/src/ch/asynk/tankontank/game/battles/Factory.java +++ b/core/src/ch/asynk/tankontank/game/battles/Factory.java @@ -116,6 +116,7 @@ public class Factory implements Board.TileBuilder, Disposable public Unit getUnit(UnitId id) { + boolean regular = game.config.regularPawns; Unit u = null; UnitType ut = UnitType.HARD_TARGET; UnitType utHq = UnitType.HARD_TARGET_HQ; @@ -163,7 +164,10 @@ public class Factory implements Board.TileBuilder, Disposable u = new Unit(Army.US, id, ut, 5, 8, 1, "us-priest", "us-head", pawnsAtlas, pawnOverlaysAtlas); break; case US_SHERMAN: - u = new Unit(Army.US, id, ut, 2, 9, 2, "us-sherman", "us-sherman-head", pawnsAtlas, pawnOverlaysAtlas); + if (regular) + u = new Unit(Army.US, id, ut, 2, 9, 2, "us-sherman", "us-head", pawnsAtlas, pawnOverlaysAtlas); + else + u = new Unit(Army.US, id, ut, 2, 9, 2, "us-sherman-values", "us-sherman-head", pawnsAtlas, pawnOverlaysAtlas); break; case US_SHERMAN_HQ: u = new Unit(Army.US, id, utHq, 2, 9, 2, "us-sherman-hq", "us-head", pawnsAtlas, pawnOverlaysAtlas); |