Status effect particle color pass

This commit is contained in:
Anuken
2021-06-05 11:10:26 -04:00
parent c80f2d6cf4
commit b4dad32b2b
2 changed files with 3 additions and 3 deletions

View File

@@ -963,7 +963,7 @@ public class Fx{
}),
overdriven = new Effect(20f, e -> {
color(Pal.accent);
color(e.color);
randLenVectors(e.id, 2, 1f + e.fin() * 2f, (x, y) -> {
Fill.square(e.x + x, e.y + y, e.fout() * 2.3f + 0.5f);
@@ -971,7 +971,7 @@ public class Fx{
}),
overclocked = new Effect(50f, e -> {
color(Pal.accent);
color(e.color);
Fill.square(e.x, e.y, e.fslope() * 2f, 45f);
}),

View File

@@ -120,7 +120,7 @@ public class StatusEffect extends UnlockableContent{
if(effect != Fx.none && Mathf.chanceDelta(effectChance)){
Tmp.v1.rnd(Mathf.range(unit.type.hitSize/2f));
effect.at(unit.x + Tmp.v1.x, unit.y + Tmp.v1.y);
effect.at(unit.x + Tmp.v1.x, unit.y + Tmp.v1.y, color);
}
}