Skip to content

Commit

Permalink
blinkSize (Anuken#6359)
Browse files Browse the repository at this point in the history
Co-authored-by: Lele567 <[email protected]>
  • Loading branch information
MrDuck557 and MrDuck557 authored Nov 22, 2021
1 parent f81d519 commit f1e9d05
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/mindustry/entities/abilities/EnergyFieldAbility.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public class EnergyFieldAbility extends Ability{
public int maxTargets = 25;
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 int sectors = 5;
public Color color = Pal.heal;
Expand Down Expand Up @@ -60,7 +60,7 @@ public void draw(Unit unit){
Draw.color(color);
Tmp.v1.trns(unit.rotation - 90, x, y).add(unit.x, unit.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);
Draw.color();
Expand Down

0 comments on commit f1e9d05

Please sign in to comment.