Skip to content

Commit 01b2cd2

Browse files
authored
release: 0.7.4 (#134)
2 parents 5fe93b5 + b32f314 commit 01b2cd2

File tree

6 files changed

+312
-0
lines changed

6 files changed

+312
-0
lines changed

Diff for: โ€ŽENGLISH.md

+1
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ _New contributions may take up to 1 hour to be reflected._
189189
| dessert_fox_collaborator <br> <img src="docs/dessert-fox-collaborator.svg" width="80px" height="65px"/> | 0.0 | Pet made for collaborator [sumi-001](https://github.com/sumi-0011) |
190190
| white_cat_collaborator <br> <img src="docs/white-cat-collaborator.svg" width="100px" height="70px"/> | 0.0 | Pet made for collaborator [Ha youna](https://www.behance.net/hyn991022a6be) |
191191
| pig_collaborator <br> <img src="docs/pig-collaborator.svg" width="120px" height="90px"/> | 0.0 | Pet made for collaborator [hyesungoh](https://github.com/hyesungoh) |
192+
| rabbit_collaborator <br> <img src="docs/rabbit-collaborator.svg" width="40px" height="55px"/> | 0.0 | Pet made for collaborator [Choi jiwoo](https://www.behance.net/sopungcjw42af) |
192193

193194
##
194195

Diff for: โ€ŽREADME.md

+1
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ _์ƒˆ๋กœ์šด contribution์€ ๋ฐ˜์˜์€ ์ตœ๋Œ€ 1์‹œ๊ฐ„์ด ์†Œ์š”๋  ์ˆ˜ ์žˆ์–ด์š”._
184184
| dessert_fox_collaborator <br> <img src="docs/dessert-fox-collaborator.svg" width="80px" height="65px"/> | 0.0 | Pet made for collaborator [sumi-001](https://github.com/sumi-0011) |
185185
| white_cat_collaborator <br> <img src="docs/white-cat-collaborator.svg" width="100px" height="70px"/> | 0.0 | Pet made for collaborator [Ha youna](https://www.behance.net/hyn991022a6be) |
186186
| pig_collaborator <br> <img src="docs/pig-collaborator.svg" width="120px" height="90px"/> | 0.0 | Pet made for collaborator [hyesungoh](https://github.com/hyesungoh) |
187+
| rabbit_collaborator <br> <img src="docs/rabbit-collaborator.svg" width="40px" height="55px"/> | 0.0 | Pet made for collaborator [Choi jiwoo](https://www.behance.net/sopungcjw42af) |
187188

188189
##
189190

Diff for: โ€Ždocs/rabbit-collaborator.svg

+122
Loading

Diff for: โ€Žsrc/main/kotlin/org/gitanimals/render/domain/PersonaType.kt

+15
Original file line numberDiff line numberDiff line change
@@ -1152,6 +1152,21 @@ enum class PersonaType(val weight: Double, private var dropRate: String? = null)
11521152
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
11531153
.toString()
11541154
},
1155+
RABBIT_COLLABORATOR(0.0) {
1156+
override fun loadSvg(user: User, persona: Persona, mode: Mode): String {
1157+
return rabbitCollaboratorSvg.replace("*{act}", act(persona.id))
1158+
.replace("*{id}", persona.id.toString())
1159+
.replace("*{level}", persona.level.value.toSvg(14.0, 2.0))
1160+
.replace(
1161+
"*{levelx}",
1162+
(-9 + (-1 * (persona.level.value.toString().length))).toString()
1163+
)
1164+
}
1165+
1166+
override fun act(id: Long): String =
1167+
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
1168+
.toString()
1169+
},
11551170
DESSERT_FOX(0.05) {
11561171
override fun loadSvg(user: User, persona: Persona, mode: Mode): String {
11571172
return dessertFoxSvg.replace("*{act}", act(persona.id))

Diff for: โ€Žsrc/main/kotlin/org/gitanimals/render/domain/Svgs.kt

+3
Original file line numberDiff line numberDiff line change
@@ -220,6 +220,9 @@ val slothKingSvg: String = ClassPathResource("persona/animal/sloth-king.svg")
220220
val slothSunglassesSvg: String = ClassPathResource("persona/animal/sloth-sunglasses.svg")
221221
.getContentAsString(Charset.defaultCharset())
222222

223+
val rabbitCollaboratorSvg: String = ClassPathResource("persona/animal/rabbit-collaborator.svg")
224+
.getContentAsString(Charset.defaultCharset())
225+
223226
val largeTextSvgs = lazy {
224227
val map = mutableMapOf<String, String>()
225228
for (i in 'A'..'Z') {
Loading

0 commit comments

Comments
ย (0)