Skip to content

Commit

Permalink
refactor: 펫 합성시 레벨이 최소 1만큼은 증가하도록 수정한다
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Nov 13, 2024
1 parent 07220b3 commit faaab5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/org/gitanimals/render/domain/User.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit faaab5b

Please sign in to comment.