Misc cleanup + some JSON stuff

This commit is contained in:
Anuken
2022-05-22 22:16:03 -04:00
parent e62c2f9d8e
commit 2236771b22
8 changed files with 17 additions and 23 deletions
@@ -14,7 +14,7 @@ public class StatusFieldAbility extends Ability{
public Effect applyEffect = Fx.none;
public Effect activeEffect = Fx.overdriveWave;
public float effectX, effectY;
public boolean parentizeEffects;
public boolean parentizeEffects, effectSizeParam = true;
protected float timer;
@@ -43,7 +43,7 @@ public class StatusFieldAbility extends Ability{
});
float x = unit.x + Angles.trnsx(unit.rotation, effectY, effectX), y = unit.y + Angles.trnsy(unit.rotation, effectY, effectX);
activeEffect.at(x, y, unit.rotation, parentizeEffects ? unit : null);
activeEffect.at(x, y, effectSizeParam ? range : unit.rotation, parentizeEffects ? unit : null);
timer = 0f;
}