Skip to content

Commit 2e5aaab

Browse files
authored
release: 0.3.3 (#38)
2 parents 813feca + fe87b06 commit 2e5aaab

File tree

7 files changed

+923
-162
lines changed

7 files changed

+923
-162
lines changed

โ€ŽENGLISH.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ _New contributions may take up to 1 hour to be reflected._
164164
| 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> |
165165
| goblin <br> <img src="docs/goblin.svg" width="80px" height="80px"/> | 0.06 | |
166166
| goblin-bag <br> <img src="docs/goblin-bag.svg" width="100px" height="80px"/> | 0.03 | |
167+
| bbibbi <br> <img src="docs/bbibbi.svg" width="80px" height="100px"/> | 0.00 | Character created by `BBIBBI` donations <br> Only buy in shop <br> <a href="https://play.google.com/store/apps/details?id=com.no5ing.bbibbi&hl=es_PY&gl=US&pli=1"> BBIBBI </a> |
167168

168169
##
169170

โ€ŽREADME.md

Lines changed: 54 additions & 53 deletions
Large diffs are not rendered by default.

โ€Ždocs/bbibbi.svg

Lines changed: 302 additions & 0 deletions
Loading

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -992,6 +992,24 @@ enum class PersonaType(private val weight: Double) {
992992
StringBuilder().moveRandomly("goblin-bag", id, 15, "180s", 5)
993993
.toString()
994994
},
995+
996+
BBIBBI(0.000) {
997+
override fun loadSvg(user: User, persona: Persona, mode: Mode): String {
998+
check(persona.id != null) { "Save persona first before call load()" }
999+
1000+
return bbibbiSvg.replace("*{act}", act(persona.id))
1001+
.replace("*{id}", persona.id.toString())
1002+
.replace("*{level}", persona.level.value.toSvg(14.0, 2.0))
1003+
.replace(
1004+
"*{levelx}",
1005+
(-1.5 + (-1 * (persona.level.value.toString().length))).toString()
1006+
)
1007+
}
1008+
1009+
override fun act(id: Long): String =
1010+
StringBuilder().moveRandomly("bbibbi", id, 15, "180s", 5)
1011+
.toString()
1012+
}
9951013
;
9961014

9971015
init {

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,10 @@ val goblinSvg: String = ClassPathResource("persona/animal/goblin.svg")
156156
val goblinBagSvg: String = ClassPathResource("persona/animal/goblin-bag.svg")
157157
.getContentAsString(Charset.defaultCharset())
158158

159+
val bbibbiSvg: String = ClassPathResource("persona/animal/bbibbi.svg")
160+
.getContentAsString(Charset.defaultCharset())
161+
162+
159163
val largeTextSvgs = lazy {
160164
val map = mutableMapOf<String, String>()
161165
for (i in 'A'..'Z') {

โ€Žsrc/main/resources/persona/animal/bbibbi.svg

Lines changed: 268 additions & 0 deletions
Loading

โ€Žsrc/test/resources/persona/goose/test.svg

Lines changed: 276 additions & 109 deletions
Loading

0 commit comments

Comments
ย (0)