From 87726fc89b8443a521eb44e12ef55a3f7dfe11e6 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sat, 5 Feb 2022 19:21:54 -0500 Subject: [PATCH] Misc --- core/src/mindustry/content/Blocks.java | 2 -- core/src/mindustry/type/UnitType.java | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/core/src/mindustry/content/Blocks.java b/core/src/mindustry/content/Blocks.java index 97ffdc7a07..53e6adf705 100644 --- a/core/src/mindustry/content/Blocks.java +++ b/core/src/mindustry/content/Blocks.java @@ -475,13 +475,11 @@ public class Blocks{ }}; yellowStoneVent = new SteamVent("yellow-stone-vent"){{ - //TODO ...or regolith parent = blendGroup = yellowStone; attributes.set(Attribute.steam, 1f); }}; redStoneVent = new SteamVent("red-stone-vent"){{ - //TODO ...or regolith parent = blendGroup = denseRedStone; attributes.set(Attribute.steam, 1f); }}; diff --git a/core/src/mindustry/type/UnitType.java b/core/src/mindustry/type/UnitType.java index f3256d5839..5954d4838a 100644 --- a/core/src/mindustry/type/UnitType.java +++ b/core/src/mindustry/type/UnitType.java @@ -331,8 +331,6 @@ public class UnitType extends UnlockableContent{ @Override public void setStats(){ - Unit inst = constructor.get(); - stats.add(Stat.health, health); stats.add(Stat.armor, armor); stats.add(Stat.speed, speed * 60f / tilesize, StatUnit.tilesSecond); @@ -364,7 +362,7 @@ public class UnitType extends UnlockableContent{ if(buildSpeed > 0){ stats.addPercent(Stat.buildSpeed, buildSpeed); } - if(inst instanceof Payloadc){ + if(sample instanceof Payloadc){ stats.add(Stat.payloadCapacity, StatValues.squared(Mathf.sqrt(payloadCapacity / (tilesize * tilesize)), StatUnit.blocksSquared)); }