summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2015-12-29 13:13:31 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2015-12-29 13:13:31 +0100
commit424416d2f58f17addf8e3f4ecd0f54ace5ee38fb (patch)
tree22853bd2b4c99a9bd4fcc7cb8bebdb73f812418c /core
parent1c8a54ea827c6746ed53e897d874ba9ac2a88f3b (diff)
downloadRustAndDust-424416d2f58f17addf8e3f4ecd0f54ace5ee38fb.zip
RustAndDust-424416d2f58f17addf8e3f4ecd0f54ace5ee38fb.tar.gz
Factory: use turret assets when available
Diffstat (limited to 'core')
-rw-r--r--core/src/ch/asynk/rustanddust/game/Factory.java16
1 files changed, 15 insertions, 1 deletions
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);
}