From baf029ca0adbb3ed7d0f70fd3605c2721dda5f4e Mon Sep 17 00:00:00 2001 From: devxb Date: Fri, 19 Apr 2024 13:27:36 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=EC=BA=90=EB=A6=AD=ED=84=B0?= =?UTF-8?q?=EC=9D=98=20=EC=B5=9C=EB=8C=80=20=EB=86=92=EC=9D=B4=EB=A5=BC=20?= =?UTF-8?q?=EC=A4=84=EC=9D=B8=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt b/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt index e7730d4..fd9ef75 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt @@ -1017,7 +1017,7 @@ enum class PersonaType(private val weight: Double) { duration: String, personaWidth: Long, ): StringBuilder { - var currentY = Random.nextInt(10, 90) + var currentY = Random.nextInt(30, 80) var currentX = Random.nextInt(10, 90) var currentAngle = (Random.nextDouble() * 10).toInt() var currentScale = Random.nextInt(0, 2) - 1 @@ -1037,7 +1037,7 @@ enum class PersonaType(private val weight: Double) { val beforeAnimationPercentage = animationPercentage animationPercentage += Random.nextInt(2, 6) val nextY = - Random.nextInt(max(10, min(79, currentY - speed)), min(80, currentY + speed)) + Random.nextInt(max(20, min(79, currentY - speed)), min(80, currentY + speed)) val nextX = Random.nextInt(max(10, min(79, currentX - speed)), min(80, currentX + speed)) val nextAngle = (atan2(