Skip to content

Commit

Permalink
release: 0.7.4 (#134)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Sep 8, 2024
2 parents 5fe93b5 + b32f314 commit 01b2cd2
Show file tree
Hide file tree
Showing 6 changed files with 312 additions and 0 deletions.
1 change: 1 addition & 0 deletions ENGLISH.md
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ _New contributions may take up to 1 hour to be reflected._
| 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) |
| 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) |
| pig_collaborator <br> <img src="docs/pig-collaborator.svg" width="120px" height="90px"/> | 0.0 | Pet made for collaborator [hyesungoh](https://github.com/hyesungoh) |
| 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) |

##

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ _새로운 contribution은 반영은 최대 1시간이 소요될 수 있어요._
| 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) |
| 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) |
| pig_collaborator <br> <img src="docs/pig-collaborator.svg" width="120px" height="90px"/> | 0.0 | Pet made for collaborator [hyesungoh](https://github.com/hyesungoh) |
| 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) |

##

Expand Down
122 changes: 122 additions & 0 deletions docs/rabbit-collaborator.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -1152,6 +1152,21 @@ enum class PersonaType(val weight: Double, private var dropRate: String? = null)
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
.toString()
},
RABBIT_COLLABORATOR(0.0) {
override fun loadSvg(user: User, persona: Persona, mode: Mode): String {
return rabbitCollaboratorSvg.replace("*{act}", act(persona.id))
.replace("*{id}", persona.id.toString())
.replace("*{level}", persona.level.value.toSvg(14.0, 2.0))
.replace(
"*{levelx}",
(-9 + (-1 * (persona.level.value.toString().length))).toString()
)
}

override fun act(id: Long): String =
StringBuilder().moveRandomly("rabbit", id, 40, "180s", 5, 10.0)
.toString()
},
DESSERT_FOX(0.05) {
override fun loadSvg(user: User, persona: Persona, mode: Mode): String {
return dessertFoxSvg.replace("*{act}", act(persona.id))
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/org/gitanimals/render/domain/Svgs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,9 @@ val slothKingSvg: String = ClassPathResource("persona/animal/sloth-king.svg")
val slothSunglassesSvg: String = ClassPathResource("persona/animal/sloth-sunglasses.svg")
.getContentAsString(Charset.defaultCharset())

val rabbitCollaboratorSvg: String = ClassPathResource("persona/animal/rabbit-collaborator.svg")
.getContentAsString(Charset.defaultCharset())

val largeTextSvgs = lazy {
val map = mutableMapOf<String, String>()
for (i in 'A'..'Z') {
Expand Down
170 changes: 170 additions & 0 deletions src/main/resources/persona/animal/rabbit-collaborator.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 01b2cd2

Please sign in to comment.