This commit is contained in:
Anuken
2022-02-05 19:21:54 -05:00
parent 16cb8df449
commit 87726fc89b
2 changed files with 1 additions and 5 deletions

View File

@@ -475,13 +475,11 @@ public class Blocks{
}}; }};
yellowStoneVent = new SteamVent("yellow-stone-vent"){{ yellowStoneVent = new SteamVent("yellow-stone-vent"){{
//TODO ...or regolith
parent = blendGroup = yellowStone; parent = blendGroup = yellowStone;
attributes.set(Attribute.steam, 1f); attributes.set(Attribute.steam, 1f);
}}; }};
redStoneVent = new SteamVent("red-stone-vent"){{ redStoneVent = new SteamVent("red-stone-vent"){{
//TODO ...or regolith
parent = blendGroup = denseRedStone; parent = blendGroup = denseRedStone;
attributes.set(Attribute.steam, 1f); attributes.set(Attribute.steam, 1f);
}}; }};

View File

@@ -331,8 +331,6 @@ public class UnitType extends UnlockableContent{
@Override @Override
public void setStats(){ public void setStats(){
Unit inst = constructor.get();
stats.add(Stat.health, health); stats.add(Stat.health, health);
stats.add(Stat.armor, armor); stats.add(Stat.armor, armor);
stats.add(Stat.speed, speed * 60f / tilesize, StatUnit.tilesSecond); stats.add(Stat.speed, speed * 60f / tilesize, StatUnit.tilesSecond);
@@ -364,7 +362,7 @@ public class UnitType extends UnlockableContent{
if(buildSpeed > 0){ if(buildSpeed > 0){
stats.addPercent(Stat.buildSpeed, buildSpeed); 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)); stats.add(Stat.payloadCapacity, StatValues.squared(Mathf.sqrt(payloadCapacity / (tilesize * tilesize)), StatUnit.blocksSquared));
} }