From 424416d2f58f17addf8e3f4ecd0f54ace5ee38fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Zurcher?= Date: Tue, 29 Dec 2015 13:13:31 +0100 Subject: Factory: use turret assets when available --- core/src/ch/asynk/rustanddust/game/Factory.java | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/core/src/ch/asynk/rustanddust/game/Factory.java b/core/src/ch/asynk/rustanddust/game/Factory.java index fbcd658..a2e898b 100644 --- a/core/src/ch/asynk/rustanddust/game/Factory.java +++ b/core/src/ch/asynk/rustanddust/game/Factory.java @@ -174,7 +174,7 @@ public class Factory implements Board.TileBuilder, Disposable head = ((army == Army.US) ? "us-head" : "ge-head"); break; case TANKS: - head = chit + "-head"; + head = chit + "-body"; break; } return getUnitRegion(head); @@ -189,6 +189,20 @@ public class Factory implements Board.TileBuilder, Disposable case TANKS: break; } + if (chit == "us-m4-sherman") + turret = chit + "-turret"; + if (chit == "us-m10-wolverine") + turret = chit + "-turret"; + if (chit == "us-m26-pershing") + turret = chit + "-turret"; + if (chit == "ge-panzer-iv") + turret = chit + "-turret"; + if (chit == "ge-wespe") + turret = chit + "-turret"; + if (chit == "ge-tiger") + turret = chit + "-turret"; + if (chit == "ge-kingtiger") + turret = chit + "-turret"; return getUnitRegion(turret); } -- cgit v1.1-2-g2b99