WIP pressure turbine
This commit is contained in:
@@ -77,6 +77,7 @@ public class Blocks implements ContentList{
|
||||
|
||||
//power
|
||||
combustionGenerator, thermalGenerator, steamGenerator, differentialGenerator, rtgGenerator, solarPanel, largeSolarPanel, thoriumReactor,
|
||||
pressureTurbine,
|
||||
impactReactor, battery, batteryLarge, powerNode, powerNodeLarge, surgeTower, diode,
|
||||
|
||||
//production
|
||||
@@ -336,6 +337,7 @@ public class Blocks implements ContentList{
|
||||
|
||||
steamVent = new SteamVent("steam-vent"){{
|
||||
parent = blendGroup = rhyolite;
|
||||
attributes.set(Attribute.vent, 1f);
|
||||
}};
|
||||
|
||||
regolith = new Floor("regolith"){{
|
||||
@@ -1490,6 +1492,26 @@ public class Blocks implements ContentList{
|
||||
consumes.liquid(Liquids.cryofluid, 0.25f);
|
||||
}};
|
||||
|
||||
//TODO work on sprite, green bits?
|
||||
pressureTurbine = new ThermalGenerator("pressure-turbine"){{
|
||||
requirements(Category.power, with(Items.graphite, 35, Items.lead, 50, Items.beryllium, 25));
|
||||
attribute = Attribute.vent;
|
||||
displayEfficiencyScale = 1f / 9f;
|
||||
minEfficiency = 9f - 0.0001f;
|
||||
powerProduction = 1f;
|
||||
displayEfficiency = false;
|
||||
generateEffect = Fx.turbinegenerate;
|
||||
effectChance = 0.04f;
|
||||
size = 3;
|
||||
ambientSound = Sounds.hum;
|
||||
ambientSoundVolume = 0.06f;
|
||||
spinSpeed = 0.6f;
|
||||
spinners = true;
|
||||
hasLiquids = true;
|
||||
liquidOutput = new LiquidStack(Liquids.water, 5f / 60f / 9f);
|
||||
liquidCapacity = 20f;
|
||||
}};
|
||||
|
||||
//endregion power
|
||||
//region production
|
||||
|
||||
|
||||
@@ -1632,6 +1632,17 @@ public class Fx{
|
||||
}
|
||||
}).layer(Layer.bullet - 1f),
|
||||
|
||||
turbinegenerate = new Effect(100, e -> {
|
||||
color(Pal.vent);
|
||||
alpha(e.fslope() * 0.8f);
|
||||
|
||||
rand.setSeed(e.id);
|
||||
for(int i = 0; i < 3; i++){
|
||||
v.trns(rand.random(360f), rand.random(e.finpow() * 14f)).add(e.x, e.y);
|
||||
Fill.circle(v.x, v.y, rand.random(1.4f, 3.4f));
|
||||
}
|
||||
}).layer(Layer.bullet - 1f),
|
||||
|
||||
generatespark = new Effect(18, e -> {
|
||||
randLenVectors(e.id, 5, e.fin() * 8f, (x, y) -> {
|
||||
float len = e.fout() * 4f;
|
||||
|
||||
Reference in New Issue
Block a user