From dadbaa138068811df437a529f389b35193240ee2 Mon Sep 17 00:00:00 2001 From: MEEP of Faith <54301439+MEEPofFaith@users.noreply.github.com> Date: Fri, 28 May 2021 13:18:38 -0700 Subject: [PATCH] `e.rotation, 360f` in randlLenVectors unneeded, remove them. (#5242) --- core/src/mindustry/content/Fx.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/core/src/mindustry/content/Fx.java b/core/src/mindustry/content/Fx.java index e0404c53cc..fa492d0bee 100644 --- a/core/src/mindustry/content/Fx.java +++ b/core/src/mindustry/content/Fx.java @@ -429,7 +429,7 @@ public class Fx{ color(e.color); stroke(e.fout() * 1.5f); - randLenVectors(e.id, 8, e.finpow() * 17f, e.rotation, 360f, (x, y) -> { + randLenVectors(e.id, 8, e.finpow() * 17f, (x, y) -> { float ang = Mathf.angle(x, y); lineAngle(e.x + x, e.y + y, ang, e.fout() * 4 + 1f); }); @@ -439,7 +439,7 @@ public class Fx{ color(Color.white); stroke(e.fout() * 1.5f); - randLenVectors(e.id, 8, e.finpow() * 17f, e.rotation, 360f, (x, y) -> { + randLenVectors(e.id, 8, e.finpow() * 17f, (x, y) -> { float ang = Mathf.angle(x, y); lineAngle(e.x + x, e.y + y, ang, e.fout() * 4 + 1f); }); @@ -449,7 +449,7 @@ public class Fx{ color(e.color); stroke(e.fout() * 2f); - randLenVectors(e.id, 6, e.finpow() * 18f, e.rotation, 360f, (x, y) -> { + randLenVectors(e.id, 6, e.finpow() * 18f, (x, y) -> { float ang = Mathf.angle(x, y); lineAngle(e.x + x, e.y + y, ang, e.fout() * 4 + 1f); }); @@ -459,7 +459,7 @@ public class Fx{ color(Pal.meltdownHit); stroke(e.fout() * 2f); - randLenVectors(e.id, 6, e.finpow() * 18f, e.rotation, 360f, (x, y) -> { + randLenVectors(e.id, 6, e.finpow() * 18f, (x, y) -> { float ang = Mathf.angle(x, y); lineAngle(e.x + x, e.y + y, ang, e.fout() * 4 + 1f); }); @@ -469,7 +469,7 @@ public class Fx{ color(Pal.heal); stroke(e.fout() * 2f); - randLenVectors(e.id, 6, e.finpow() * 18f, e.rotation, 360f, (x, y) -> { + randLenVectors(e.id, 6, e.finpow() * 18f, (x, y) -> { float ang = Mathf.angle(x, y); lineAngle(e.x + x, e.y + y, ang, e.fout() * 4 + 1f); });