Skip to content

Commit

Permalink
release: 0.2.9 (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb authored Apr 20, 2024
2 parents 7abfb16 + 4eac4d0 commit 005e10e
Show file tree
Hide file tree
Showing 6 changed files with 444 additions and 178 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,8 @@ _새로운 contribtuion은 반영은 최대 1시간이 소요될 수 있어요.
| slime_green | 0.1 | |
| slime_blue | 0.1 | |
| flamingo <br> <img src="docs/flamingo.svg" width="50px" height="110"/> | 0.08 | |
| TEN_MM <br> <img src="docs/tenmm.svg" width="80px" height="90px"> | 0.00 | Character created by `10MM` donations <br> Only buy in shop <br> <a href="https://github.com/depromeet/10mm-client-web"> 10MM </a> |
| TEN_MM <br> <img src="docs/tenmm.svg" width="80px" height="90px"/> | 0.00 | Character created by `10MM` donations <br> Only buy in shop <br> <a href="https://github.com/depromeet/10mm-client-web"> 10MM </a> |
| goblin <br> <img src="docs/goblin.svg" width="80px" height="80px"/> | 0.06 | |

##

Expand Down
169 changes: 169 additions & 0 deletions docs/goblin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,24 @@ enum class PersonaType(private val weight: Double) {
StringBuilder().moveRandomly("tenmm", id, 15, "180s", 5)
.toString()
},

GOBLIN(0.06) {
override fun loadSvg(user: User, persona: Persona, mode: Mode): String {
check(persona.id != null) { "Save persona first before call load()" }

return goblinSvg.replace("*{act}", act(persona.id))
.replace("*{id}", persona.id.toString())
.replace("*{level}", persona.level.value.toSvg(14.0, 2.0))
.replace(
"*{levelx}",
(-6.5 + (-1 * (persona.level.value.toString().length))).toString()
)
}

override fun act(id: Long): String =
StringBuilder().moveRandomly("goblin", id, 15, "180s", 5)
.toString()
}
;

init {
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 @@ -150,6 +150,9 @@ val flamingoSvg: String = ClassPathResource("persona/animal/flamingo.svg")
val tenmmSvg: String = ClassPathResource("persona/animal/tenmm.svg")
.getContentAsString(Charset.defaultCharset())

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

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

0 comments on commit 005e10e

Please sign in to comment.