Custom Base Support

This commit is contained in:
MEEP of Faith 2020-10-24 15:02:36 -07:00 committed by GitHub
parent e88921c77e
commit 2ec3eee138
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ public abstract class Turret extends ReloadTurret{
protected Vec2 tr = new Vec2();
protected Vec2 tr2 = new Vec2();
public @Load("block-@size") TextureRegion baseRegion;
public @Load("@-base", fallback = "block-@size") TextureRegion baseRegion;
public @Load("@-heat") TextureRegion heatRegion;
public Cons<TurretBuild> drawer = tile -> Draw.rect(region, tile.x + tr2.x, tile.y + tr2.y, tile.rotation - 90);