From 209e390927fd961e4175fb889d1a4179263325c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Mon, 13 Oct 2014 17:24:15 +0200 Subject: Factory: fix HQ units --- core/src/ch/asynk/tankontank/game/Factory.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/core/src/ch/asynk/tankontank/game/Factory.java b/core/src/ch/asynk/tankontank/game/Factory.java index d5d20c3..de23457 100644 --- a/core/src/ch/asynk/tankontank/game/Factory.java +++ b/core/src/ch/asynk/tankontank/game/Factory.java @@ -50,6 +50,7 @@ public class Factory implements Board.TileBuilder, Disposable { Unit u = null; Unit.UnitType ut = Unit.UnitType.HARD_TARGET; + Unit.UnitType utHq = Unit.UnitType.HARD_TARGET_HQ; switch(t) { case GE_AT_GUN: ut = Unit.UnitType.AT_GUN; @@ -66,7 +67,7 @@ public class Factory implements Board.TileBuilder, Disposable u = new Unit(Army.GE, ut, 2, 9, 2, pawnAtlas, "ge-panzer-iv", "head"); break; case GE_PANZER_IV_HQ: - u = new Unit(Army.GE, ut, 2, 9, 2, pawnAtlas, "ge-panzer-iv-hq", "head"); + u = new Unit(Army.GE, utHq, 2, 9, 2, pawnAtlas, "ge-panzer-iv-hq", "head"); break; case GE_TIGER: u = new Unit(Army.GE, ut, 3, 11, 1, pawnAtlas, "ge-tiger", "head"); @@ -86,7 +87,7 @@ public class Factory implements Board.TileBuilder, Disposable u = new Unit(Army.US, ut, 3, 10, 2, pawnAtlas, "us-pershing", "head"); break; case US_PERSHING_HQ: - u = new Unit(Army.US, ut, 3, 10, 2, pawnAtlas, "us-pershing-hq", "head"); + u = new Unit(Army.US, utHq, 3, 10, 2, pawnAtlas, "us-pershing-hq", "head"); break; case US_PRIEST: u = new Unit(Army.US, ut, 5, 8, 1, pawnAtlas, "us-priest", "head"); @@ -95,7 +96,7 @@ public class Factory implements Board.TileBuilder, Disposable u = new Unit(Army.US, ut, 2, 9, 2, pawnAtlas, "us-sherman", "us-sherman-head"); break; case US_SHERMAN_HQ: - u = new Unit(Army.US, ut, 2, 9, 2, pawnAtlas, "us-sherman-hq", "head"); + u = new Unit(Army.US, utHq, 2, 9, 2, pawnAtlas, "us-sherman-hq", "head"); break; case US_WOLVERINE: u = new Unit(Army.US, ut, 3, 8, 3, pawnAtlas, "us-wolverine", "head"); -- cgit v1.1-2-g2b99