Status effect particle color pass
This commit is contained in:
@@ -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);
|
||||
}),
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user