From faaab5b937ee149ffe92c976fc77f24c25bbf76a Mon Sep 17 00:00:00 2001 From: devxb Date: Wed, 13 Nov 2024 20:39:33 +0900 Subject: [PATCH] =?UTF-8?q?refactor:=20=ED=8E=AB=20=ED=95=A9=EC=84=B1?= =?UTF-8?q?=EC=8B=9C=20=EB=A0=88=EB=B2=A8=EC=9D=B4=20=EC=B5=9C=EC=86=8C=20?= =?UTF-8?q?1=EB=A7=8C=ED=81=BC=EC=9D=80=20=EC=A6=9D=EA=B0=80=ED=95=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95=ED=95=9C=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/User.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/gitanimals/render/domain/User.kt b/src/main/kotlin/org/gitanimals/render/domain/User.kt index 286908a..8db5c0d 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/User.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/User.kt @@ -255,7 +255,7 @@ class User( val increasePersona = personas.first { it.id == increasePersonaId } val deletePersona = personas.first { it.id == deletePersonaId } - increasePersona.level.value += deletePersona.level.value + increasePersona.level.value += max(deletePersona.level.value / 2, 1) personas.remove(deletePersona)