blinkSize (#6359)
Co-authored-by: Lele567 <48808663+Lele567@users.noreply.github.com>
This commit is contained in:
@@ -30,7 +30,7 @@ public class EnergyFieldAbility extends Ability{
|
|||||||
public int maxTargets = 25;
|
public int maxTargets = 25;
|
||||||
public float healPercent = 2.5f;
|
public float healPercent = 2.5f;
|
||||||
|
|
||||||
public float layer = Layer.bullet - 0.001f, blinkScl = 20f;
|
public float layer = Layer.bullet - 0.001f, blinkScl = 20f, blinkSize = 0.1f;
|
||||||
public float effectRadius = 5f, sectorRad = 0.14f, rotateSpeed = 0.5f;
|
public float effectRadius = 5f, sectorRad = 0.14f, rotateSpeed = 0.5f;
|
||||||
public int sectors = 5;
|
public int sectors = 5;
|
||||||
public Color color = Pal.heal;
|
public Color color = Pal.heal;
|
||||||
@@ -60,7 +60,7 @@ public class EnergyFieldAbility extends Ability{
|
|||||||
Draw.color(color);
|
Draw.color(color);
|
||||||
Tmp.v1.trns(unit.rotation - 90, x, y).add(unit.x, unit.y);
|
Tmp.v1.trns(unit.rotation - 90, x, y).add(unit.x, unit.y);
|
||||||
float rx = Tmp.v1.x, ry = Tmp.v1.y;
|
float rx = Tmp.v1.x, ry = Tmp.v1.y;
|
||||||
float orbRadius = effectRadius * (1f + Mathf.absin(blinkScl, 0.1f));
|
float orbRadius = effectRadius * (1f + Mathf.absin(blinkScl, blinkSize));
|
||||||
|
|
||||||
Fill.circle(rx, ry, orbRadius);
|
Fill.circle(rx, ry, orbRadius);
|
||||||
Draw.color();
|
Draw.color();
|
||||||
|
|||||||
Reference in New Issue
Block a user