From 20a3107b3f93590b991b09f78b9e3c97e43b8a4f Mon Sep 17 00:00:00 2001 From: nullevoy <89076920+stacktrace-error@users.noreply.github.com> Date: Sat, 1 Jul 2023 15:21:53 +0200 Subject: [PATCH] add sides to HoverPart (#8784) * add sides to HoverPart * weird elude --- core/src/mindustry/entities/part/HoverPart.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/mindustry/entities/part/HoverPart.java b/core/src/mindustry/entities/part/HoverPart.java index 3d69e4874a..4822a6513e 100644 --- a/core/src/mindustry/entities/part/HoverPart.java +++ b/core/src/mindustry/entities/part/HoverPart.java @@ -7,7 +7,7 @@ import arc.util.*; public class HoverPart extends DrawPart{ public float radius = 4f; public float x, y, rotation, phase = 50f, stroke = 3f, minStroke = 0.12f; - public int circles = 2; + public int circles = 2, sides = 4; public Color color = Color.white; public boolean mirror = false; public float layer = -1f, layerOffset = 0f; @@ -40,7 +40,7 @@ public class HoverPart extends DrawPart{ rx = params.x + Tmp.v1.x, ry = params.y + Tmp.v1.y; - Lines.square(rx, ry, radius * fin, params.rotation - 45f); + Lines.poly(rx, ry, sides, radius * fin, params.rotation); } }