Hard enforcement of unit cap

This commit is contained in:
Anuken
2020-07-22 13:27:54 -04:00
parent a4a3f6f8c5
commit b4594b2274
3 changed files with 19 additions and 0 deletions
+8
View File
@@ -38,6 +38,14 @@ public class Fx{
}),
unitCapKill = new Effect(80f, e -> {
color(Color.scarlet);
alpha(e.fout(Interp.pow4Out));
float size = 10f + e.fout(Interp.pow10In) * 25f;
Draw.rect(Icon.warning.getRegion(), e.x, e.y, size, size);
}),
unitControl = new Effect(30f, e -> {
if(!(e.data instanceof Unit)) return;