Misc
This commit is contained in:
@@ -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);
|
||||
}};
|
||||
|
||||
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user