Skip to content

Commit

Permalink
release: 1.3.4 (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Jan 26, 2025
2 parents 68aa2c4 + b4bfb5b commit c1a9aa4
Show file tree
Hide file tree
Showing 8 changed files with 338 additions and 1 deletion.
1 change: 1 addition & 0 deletions README-en.md
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,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) |
| 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) |
| hamster_collaborator <br> <img src = "docs/hamster-collaborator.svg" width="100px" height="50px"/> | 0.8 | Pet made for collaborator [Orchemi](https://github.com/Orchemi) |

##

Expand Down
1 change: 1 addition & 0 deletions README-ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ _新しいコントリビューションの反映には最大で1時間かかる
| dessert_fox_collaborator <br> <img src="docs/dessert-fox-collaborator.svg" width="80px" height="65px"/> | 0.0 | コラボレーター [sumi-001](https://github.com/sumi-0011) のために作られたペット |
| pig_collaborator <br> <img src="docs/pig-collaborator.svg" width="120px" height="90px"/> | 0.0 | コラボレーター [hyesungoh](https://github.com/hyesungoh) のために作られたペット |
| rabbit_collaborator <br> <img src="docs/rabbit-collaborator.svg" width="40px" height="55px"/> | 0.0 | コラボレーター [Choi jiwoo](https://www.behance.net/sopungcjw42af) のために作られたペット |
| hamster_collaborator <br> <img src = "docs/hamster-collaborator.svg" width="100px" height="50px"/> | 0.8 | Pet made for collaborator [Orchemi](https://github.com/Orchemi) |

##

Expand Down
1 change: 1 addition & 0 deletions README-zhcn.md
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ _新的贡献可能需要1个小时才能显示_
| dessert_fox_collaborator <br> <img src="docs/dessert-fox-collaborator.svg" width="80px" height="65px"/> | 0.0 | 协作者 [sumi-001](https://github.com/sumi-0011) 制作 |
| pig_collaborator <br> <img src="docs/pig-collaborator.svg" width="120px" height="90px"/> | 0.0 | 协作者 [hyesungoh](https://github.com/hyesungoh) 制作 |
| rabbit_collaborator <br> <img src="docs/rabbit-collaborator.svg" width="40px" height="55px"/> | 0.0 | 协作者 [Choi jiwoo](https://www.behance.net/sopungcjw42af) 制作 |
| hamster_collaborator <br> <img src = "docs/hamster-collaborator.svg" width="100px" height="50px"/> | 0.8 | Pet made for collaborator [Orchemi](https://github.com/Orchemi) |

##

Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ farm mode는 가지고 있는 모든 동물과 추가적인 정보를 보여줘
### guild mode

길드를 만들고 친구와 함께 펫을 키울 수 있어요.
[길드 만들러 가기](https://gitanimals.org/guild)
[길드 만들러 가기](https://gitanimals.org/guild)

<a href="https://www.gitanimals.org/">
<img src="https://render.gitanimals.org/guilds/668749238833660322/draw" width="300" alt="gitanimals"/>
Expand Down Expand Up @@ -229,6 +229,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) |
| 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) |
| hamster_collaborator <br> <img src = "docs/hamster-collaborator.svg" width="100px" height="50px"/> | 0.8 | Pet made for collaborator [Orchemi](https://github.com/Orchemi) |

##

Expand Down
126 changes: 126 additions & 0 deletions docs/hamster-collaborator.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
20 changes: 20 additions & 0 deletions src/main/kotlin/org/gitanimals/core/PersonaType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2001,6 +2001,26 @@ enum class PersonaType(val weight: Double, private var dropRate: String? = null)
StringBuilder().moveRandomly("maltese", id, 40, "180s", 5, 12.0)
.toString()
},
HAMSTER_COLLABORATOR(0.0) {
override fun loadSvg(name: String, animationId: Long, level: Long, mode: Mode): String {
return hamsterCollaboratorSvg.replace("*{act}", act(animationId))
.replace("*{id}", animationId.toString())
.replace("*{level}", level.toSvg(14.0, 2.0))
.replace(
"*{levelx}",
(-5 + (-1 * (level.toString().length))).toString()
)
.replace("*{username}", name.toSvg(14.0, 25.0))
.replace(
"*{usernamex}",
(17 + (-3 * name.length)).toString()
)
}

override fun act(id: Long, flippedWidth: Double): String =
StringBuilder().moveRandomly("hamster", id, 5, "1000s", 5, 21.0)
.toString()
},
;

init {
Expand Down
3 changes: 3 additions & 0 deletions src/main/kotlin/org/gitanimals/core/Svgs.kt
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,9 @@ val hamsterKotlinSvg: String = ClassPathResource("persona/animal/hamster-kotlin.
val hamsterJsSvg: String = ClassPathResource("persona/animal/hamster-js.svg")
.getContentAsString(Charset.defaultCharset())

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

val snowmanSvg: String = ClassPathResource("persona/animal/snowman.svg")
.getContentAsString(Charset.defaultCharset())

Expand Down
Loading

0 comments on commit c1a9aa4

Please sign in to comment.