This commit is contained in:
Anuken
2020-07-30 19:00:19 -04:00
parent 01e3599c7d
commit a297d11023
6 changed files with 9 additions and 9 deletions

View File

@@ -63,15 +63,15 @@ public class Fx{
}),
unitDespawn = new Effect(100f, e -> {
if(!(e.data instanceof Unitc)) return;
if(!(e.data instanceof Unit) || e.<Unit>data().type() == null) return;
Unitc select = (Unitc)e.data;
Unit select = e.data();
float scl = e.fout(Interp.pow2Out);
float p = Draw.scl;
Draw.scl *= scl;
mixcol(Pal.accent, 1f);
rect(select.type().icon(Cicon.full), select.x(), select.y(), select.rotation() - 90f);
rect(select.type().icon(Cicon.full), select.x, select.y, select.rotation - 90f);
reset();
Draw.scl = p;