Skip to content

Commit 3adfba3

Browse files
committed
feat: 🏖️New pet RABBIT_TUBE🏖️
1 parent ee8c359 commit 3adfba3

File tree

8 files changed

+338
-1
lines changed

8 files changed

+338
-1
lines changed

README-en.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,8 @@ _New contributions may take up to 1 hour to be reflected._
145145
| name | ratio | Description |
146146
|---------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
147147
| LITTLE_CHICK_TUBE <br> <img src = "docs/little-chick-tube.svg" width="45px" height="40px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
148-
| HAMSTER_TUBE <br> <img src = "docs/hamster-tube.svg" width="100px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
148+
| RABBIT_TUBE <br> <img src = "docs/rabbit-tube.svg" width="60px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
149+
| HAMSTER_TUBE <br> <img src = "docs/hamster-tube.svg" width="100px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
149150
| SHIBA <br> <img src = "docs/shiba.svg" width="60px" height="60px"/> | 0.3 | |
150151
| SHIBA_KING <br> <img src = "docs/shiba-king.svg" width="60px" height="60px"/> | 0.01 | |
151152
| UNICORN <br> <img src = "docs/unicorn.svg" width="60px" height="60px"/> | 0.001 | Designed by [@Choi_sunwoo](https://www.behance.net/6a39a177) |

README-ja.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ _新しいコントリビューションの反映には最大で1時間かかる
142142
| 名前 | 比率 | 説明 |
143143
|----------------------------------------------------------------------------------------------------------|-------|---------------------------------------------------------------------------------------------------------------------------------------------------------|
144144
| LITTLE_CHICK_TUBE <br> <img src = "docs/little-chick-tube.svg" width="45px" height="40px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
145+
| RABBIT_TUBE <br> <img src = "docs/rabbit-tube.svg" width="60px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
145146
| HAMSTER_TUBE <br> <img src = "docs/hamster-tube.svg" width="100px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
146147
| SHIBA <br> <img src = "docs/shiba.svg" width="60px" height="60px"/> | 0.3 | |
147148
| SHIBA_KING <br> <img src = "docs/shiba-king.svg" width="60px" height="60px"/> | 0.01 | |

README-zhcn.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,7 @@ _新的贡献可能需要1个小时才能显示_
144144
| 名字 | 概率 | 描述 |
145145
|---------------------------------------------------------------------------------------------------------|-------|--------------------------------------------------------------------------------------------------------------------|
146146
| LITTLE_CHICK_TUBE <br> <img src = "docs/little-chick-tube.svg" width="45px" height="40px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
147+
| RABBIT_TUBE <br> <img src = "docs/rabbit-tube.svg" width="60px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
147148
| HAMSTER_TUBE <br> <img src = "docs/hamster-tube.svg" width="100px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
148149
| SHIBA <br> <img src = "docs/shiba.svg" width="60px" height="60px"/> | 0.3 | |
149150
| SHIBA_KING <br> <img src = "docs/shiba-king.svg" width="60px" height="60px"/> | 0.01 | |

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@ _새로운 contribution 반영은 최대 1시간이 소요될 수 있어요._
141141
| name | ratio | Description |
142142
|----------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
143143
| LITTLE_CHICK_TUBE <br> <img src = "docs/little-chick-tube.svg" width="45px" height="40px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
144+
| RABBIT_TUBE <br> <img src = "docs/rabbit-tube.svg" width="60px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
144145
| HAMSTER_TUBE <br> <img src = "docs/hamster-tube.svg" width="100px" height="60px"/> | 0.01 | 🏖️2025 Summer pet 🏖 |
145146
| SHIBA <br> <img src = "docs/shiba.svg" width="60px" height="60px"/> | 0.3 | |
146147
| SHIBA_KING <br> <img src = "docs/shiba-king.svg" width="60px" height="60px"/> | 0.01 | |

docs/rabbit-tube.svg

Lines changed: 125 additions & 0 deletions
Loading

src/main/kotlin/org/gitanimals/core/PersonaType.kt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1566,6 +1566,27 @@ enum class PersonaType(val weight: Double, private var dropRate: String? = null)
15661566
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
15671567
.toString()
15681568
},
1569+
RABBIT_TUBE(0.01) {
1570+
override fun loadSvg(name: String, animationId: Long, level: Long, mode: Mode): String {
1571+
return rabbitTubeSvg.replace("*{act}", act(animationId))
1572+
.replace("*{id}", animationId.toString())
1573+
.replace("*{level}", level.toSvg(14.0, 2.0))
1574+
.replace(
1575+
"*{levelx}",
1576+
(-9 + (-1 * (level.toString().length))).toString()
1577+
)
1578+
.replace("*{username}", name.toSvg(14.0, 25.0))
1579+
.replace(
1580+
"*{usernamex}",
1581+
(6 + (-3 * name.length)).toString()
1582+
)
1583+
}
1584+
1585+
override fun act(id: Long, flippedWidth: Double): String =
1586+
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
1587+
.toString()
1588+
},
1589+
15691590
DESSERT_FOX(0.05) {
15701591
override fun loadSvg(name: String, animationId: Long, level: Long, mode: Mode): String {
15711592
return dessertFoxSvg.replace("*{act}", act(animationId))

src/main/kotlin/org/gitanimals/core/Svgs.kt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ val moleGrassSvg: String = ClassPathResource("persona/animal/mole-grass.svg")
240240
val rabbitSvg: String = ClassPathResource("persona/animal/rabbit.svg")
241241
.getContentAsString(Charset.defaultCharset())
242242

243+
val rabbitTubeSvg: String = ClassPathResource("persona/animal/rabbit-tube.svg")
244+
.getContentAsString(Charset.defaultCharset())
245+
243246
val pigCollaboratorSvg: String = ClassPathResource("persona/animal/pig-collaborator.svg")
244247
.getContentAsString(Charset.defaultCharset())
245248

0 commit comments

Comments
 (0)