Surge crucible effects

This commit is contained in:
Anuken
2021-11-17 13:37:51 -05:00
parent 4567ee9a13
commit 4d13b8df7a
18 changed files with 179 additions and 6 deletions

View File

@@ -1043,21 +1043,38 @@ public class Blocks implements ContentList{
outputLiquids = new LiquidStack[]{};
}};
//TODO implement
//TODO "crucible" is getting old
//TODO should have a useful turret ammo byproduct?
//original: consumes.items(with(Items.copper, 3, Items.lead, 4, Items.titanium, 2, Items.silicon, 3));
if(false)
surgeCrucible = new HeatCrafter("surge-crucible"){{
requirements(Category.crafting, with(Items.tungsten, 60, Items.graphite, 60, Items.carbide, 30));
size = 3;
itemCapacity = 20;
heatRequirement = 5f;
craftTime = 60f * 2.5f;
craftTime = 60f * 3f;
liquidCapacity = 80f * 5;
ambientSound = Sounds.smelter;
ambientSoundVolume = 0.07f;
outputItem = new ItemStack(Items.surgeAlloy, 1);
craftEffect = new RadialEffect(Fx.surgeCruciSmoke, 4, 90f, 5f);
drawer = new DrawMulti(new DrawRegion("-bottom"), new DrawCircles(){{
color = Color.valueOf("ffc073").a(0.24f);
strokeMax = 2.5f;
radius = 10f;
amount = 3;
}}, new DrawLiquidRegion(Liquids.slag), new DrawBlock(), new DrawHeatInput(), new DrawHeatRegion(){{
heatColor = Color.valueOf("ff6060ff");
}}, new DrawHeatRegion("-vents"){{
heatColor.a = 1f;
}});
iconOverride = new String[]{"-bottom", ""};
consumes.item(Items.silicon, 3);
//TODO must consume from 2 pumps, 1, or 1.5?
//TODO consume hydrogen/ozone?

View File

@@ -12,7 +12,7 @@ import mindustry.game.*;
import mindustry.gen.*;
import mindustry.graphics.*;
import mindustry.type.*;
import mindustry.world.Block;
import mindustry.world.*;
import static arc.graphics.g2d.Draw.rect;
import static arc.graphics.g2d.Draw.*;
@@ -1345,6 +1345,21 @@ public class Fx{
});
}),
surgeCruciSmoke = new Effect(160f, e -> {
color(Pal.slagOrange);
alpha(0.6f);
rand.setSeed(e.id);
for(int i = 0; i < 3; i++){
float len = rand.random(6f), rot = rand.range(40f) + e.rotation;
e.scaled(e.lifetime * rand.random(0.3f, 1f), b -> {
v.trns(rot, len * b.finpow());
Fill.circle(e.x + v.x, e.y + v.y, 2f * b.fslope() + 0.2f);
});
}
}),
berylSpark = new Effect(21f, e -> {
color(Color.white, Pal.berylShot, e.fin());
stroke(e.fout() * 1.1f + 0.5f);