JSON UnitType type: support

This commit is contained in:
Anuken
2022-05-21 12:40:16 -04:00
parent b010e9d720
commit b8dac1e408
3 changed files with 3 additions and 3 deletions

View File

@@ -143,7 +143,6 @@ public class RegionPart extends DrawPart{
String realName = this.name == null ? name + suffix : this.name;
if(drawRegion){
//TODO l/r
if(mirror && turretShading){
regions = new TextureRegion[]{
Core.atlas.find(realName + "-r"),

View File

@@ -437,7 +437,9 @@ public class ContentParser{
UnitType unit;
if(locate(ContentType.unit, name) == null){
unit = new UnitType(mod + "-" + name);
unit = make(resolve(value.getString("type", ""), UnitType.class), mod + "-" + name);
var typeVal = value.get("type");
if(typeVal != null && !typeVal.isString()){

View File

@@ -9,7 +9,6 @@ import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.world.*;
//TODO remake/remove
public class DrawFlame extends DrawBlock{
public Color flameColor = Color.valueOf("ffc999");
public TextureRegion top;