diff --git a/README.md b/README.md index 684ae9e..07ff9c7 100644 --- a/README.md +++ b/README.md @@ -111,6 +111,7 @@ _새로운 contribution은 반영은 최대 1시간이 소요될 수 있어요._ |------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | QUOKKA
| 0.3 | | | QUOKKA_LEAF
| 0.1 | | +| QUOKKA_SUNGLASSES
| 0.05 | | | FISH_MAN
| 0.001 | | | FISH_MAN_GLASSES
| 0.001 | | | flamingo
| 0.08 | | diff --git a/docs/quokka-leaf.svg b/docs/quokka-leaf.svg index aaf6f7a..0cfe851 100644 --- a/docs/quokka-leaf.svg +++ b/docs/quokka-leaf.svg @@ -61,47 +61,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/docs/quokka-sunglasses.svg b/docs/quokka-sunglasses.svg new file mode 100644 index 0000000..c6a44f9 --- /dev/null +++ b/docs/quokka-sunglasses.svg @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt b/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt index 0248039..fc2155a 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt @@ -1041,6 +1041,21 @@ enum class PersonaType(private val weight: Double) { StringBuilder().moveRandomly("quokka", id, 40, "180s", 5, 10.0) .toString() }, + QUOKKA_SUNGLASSES(0.05) { + override fun loadSvg(user: User, persona: Persona, mode: Mode): String { + return quokkaSunglassesSvg.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("quokka", id, 40, "180s", 5, 10.0) + .toString() + }, ; init { diff --git a/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt b/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt index 085ea10..fec10ae 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt @@ -184,6 +184,10 @@ val quokkaSvg: String = ClassPathResource("persona/animal/quokka.svg") val quokkaLeafSvg: String = ClassPathResource("persona/animal/quokka-leaf.svg") .getContentAsString(Charset.defaultCharset()) +val quokkaSunglassesSvg: String = ClassPathResource("persona/animal/quokka-sunglasses.svg") + .getContentAsString(Charset.defaultCharset()) + + val largeTextSvgs = lazy { val map = mutableMapOf() for (i in 'A'..'Z') { diff --git a/src/main/resources/persona/animal/quokka-sunglasses.svg b/src/main/resources/persona/animal/quokka-sunglasses.svg new file mode 100644 index 0000000..a2fe10a --- /dev/null +++ b/src/main/resources/persona/animal/quokka-sunglasses.svg @@ -0,0 +1,164 @@ + + + + + + + + + + + + + + + + *{contribution} + + + + + + + + + + + + + + + + + + + + *{level} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +