Stacked map editor brush slider

This commit is contained in:
Anuken
2021-07-20 19:56:55 -04:00
parent 14e4203ee7
commit d506685bba
4 changed files with 12 additions and 9 deletions

View File

@@ -1161,6 +1161,7 @@ public class Blocks implements ContentList{
requirements(Category.power, with(Items.copper, 40, Items.graphite, 35, Items.lead, 50, Items.silicon, 35, Items.metaglass, 40));
powerProduction = 1.8f;
generateEffect = Fx.redgeneratespark;
effectChance = 0.013f;
size = 2;
floating = true;
ambientSound = Sounds.hum;

View File

@@ -1526,11 +1526,10 @@ public class Fx{
});
}),
redgeneratespark = new Effect(18, e -> {
randLenVectors(e.id, 5, e.fin() * 8f, (x, y) -> {
float len = e.fout() * 4f;
color(Pal.redSpark, Color.gray, e.fin());
Fill.circle(e.x + x, e.y + y, len/2f);
redgeneratespark = new Effect(80, e -> {
color(Pal.redSpark, Color.gray, e.fin());
randLenVectors(e.id, 2, e.finpow() * 9f, (x, y) -> {
Fill.circle(e.x + x, e.y + y, e.fslope() * 1.8f);
});
}),