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