Skip to content

Commit 4efb486

Browse files
authored
release: 2.4.9 (#438)
2 parents 2a2c7b3 + 397f429 commit 4efb486

File tree

5 files changed

+7
-8
lines changed

5 files changed

+7
-8
lines changed

โ€Žsrc/main/kotlin/org/gitanimals/core/PersonaEvolutionType.ktโ€Ž

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ data class PersonaEvolution(
1818
enum class PersonaEvolutionType {
1919

2020
NOTHING,
21-
RABBIT,
2221
LITTLE_CHICK,
2322
FLAMINGO,
2423
SLIME,

โ€Žsrc/main/kotlin/org/gitanimals/core/PersonaType.ktโ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,7 @@ enum class PersonaType(
16281628
StringBuilder().moveRandomly("mole", id, 40, "180s", 5, 14.0)
16291629
.toString()
16301630
},
1631-
RABBIT(weight =0.9, personaEvolution = PersonaEvolution(weight = 0.001, PersonaEvolutionType.RABBIT)) {
1631+
RABBIT(weight =0.9) {
16321632
override fun loadSvg(name: String, animationId: Long, level: Long, mode: Mode): String {
16331633
return rabbitSvg.replace("*{act}", act(animationId))
16341634
.replace("*{id}", animationId.toString())
@@ -1648,7 +1648,7 @@ enum class PersonaType(
16481648
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
16491649
.toString()
16501650
},
1651-
RABBIT_BROWN_RUDOLPH(weight = 0.007, personaEvolution = PersonaEvolution(weight = 0.01, PersonaEvolutionType.RABBIT)) {
1651+
RABBIT_BROWN_RUDOLPH(weight = 0.007) {
16521652
override fun loadSvg(name: String, animationId: Long, level: Long, mode: Mode): String {
16531653
return rabbitBrownRudolphSvg.replace("*{act}", act(animationId))
16541654
.replace("*{id}", animationId.toString())
@@ -1688,7 +1688,7 @@ enum class PersonaType(
16881688
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
16891689
.toString()
16901690
},
1691-
RABBIT_TUBE(weight = 0.01, personaEvolution = PersonaEvolution(weight = 0.02, PersonaEvolutionType.RABBIT)) {
1691+
RABBIT_TUBE(weight = 0.01) {
16921692
override fun loadSvg(name: String, animationId: Long, level: Long, mode: Mode): String {
16931693
return rabbitTubeSvg.replace("*{act}", act(animationId))
16941694
.replace("*{id}", animationId.toString())

โ€Žsrc/main/kotlin/org/gitanimals/render/domain/Persona.ktโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class Persona(
9797

9898
val evolutionedPersonaType = this.type.randomEvolution()
9999
this.type = evolutionedPersonaType
100-
this.level.value = 0
100+
this.level.value -= 100
101101
}
102102

103103
companion object {

โ€Žsrc/test/kotlin/org/gitanimals/core/CalculatePersonaDropRate.ktโ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ internal class CalculatePersonaDropRate : StringSpec({
66

77
"ํŠน์ • ์ง„ํ™” ํŽซ ๋“ฑ์žฅํ™•๋ฅ  ํ…Œ์ŠคํŠธ" {
88
val dropCount = 10000
9-
val expectedPersona = PersonaType.CAT_WINDOW
9+
val expectedPersona = PersonaType.FLAMINGO_WHITE
1010

1111
val results = mutableMapOf<PersonaType, Int>()
1212
repeat(dropCount) {

โ€Žsrc/test/kotlin/org/gitanimals/render/domain/UserServiceTest.ktโ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ internal class UserServiceTest(
5151
name = user.getName(),
5252
id = personaId,
5353
idempotencyKey = IdGenerator.generate().toString(),
54-
personaType = PersonaType.RABBIT.name,
54+
personaType = PersonaType.LITTLE_CHICK.name,
5555
level = 100,
5656
)
5757

@@ -72,7 +72,7 @@ internal class UserServiceTest(
7272
name = user.getName(),
7373
id = personaId,
7474
idempotencyKey = IdGenerator.generate().toString(),
75-
personaType = PersonaType.CAT.name,
75+
personaType = PersonaType.TEN_MM.name,
7676
level = 100,
7777
)
7878

0 commit comments

Comments
ย (0)