From 44c56c6b7ef56c2abb77df962ca6ebe25a61b9e6 Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 30 May 2024 21:36:13 +0900 Subject: [PATCH 1/6] =?UTF-8?q?docs:=20mole=20persona=EC=97=90=20=EB=B9=A0?= =?UTF-8?q?=EC=A7=84=20;=EB=A5=BC=20=EC=B6=94=EA=B0=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/mole-grass.svg | 6 +++--- docs/mole.svg | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/mole-grass.svg b/docs/mole-grass.svg index ebef13a..4052812 100644 --- a/docs/mole-grass.svg +++ b/docs/mole-grass.svg @@ -26,13 +26,13 @@ @keyframes mole-14-body-move { 0% { - transform: translate(0px, -10px) + transform: translate(0px, -10px); } 50% { - transform: translate(0px, -8.5px) + transform: translate(0px, -8.5px); } 0% { - transform: translate(0px, -10px) + transform: translate(0px, -10px); } } diff --git a/docs/mole.svg b/docs/mole.svg index 29bdf0e..b34dc0b 100644 --- a/docs/mole.svg +++ b/docs/mole.svg @@ -26,13 +26,13 @@ @keyframes mole-14-body-move { 0% { - transform: translate(0px, -10px) + transform: translate(0px, -10px); } 50% { - transform: translate(0px, -8.5px) + transform: translate(0px, -8.5px); } 0% { - transform: translate(0px, -10px) + transform: translate(0px, -10px); } } From 72aeebb9822951021213cda38903ea09f9182541 Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 30 May 2024 23:10:32 +0900 Subject: [PATCH 2/6] =?UTF-8?q?fix:=20mole=EC=9D=98=20body=EA=B0=80=200%?= =?UTF-8?q?=20->=2050%=20->=200%=20=EB=A1=9C=20=EA=B0=80=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=EB=A5=BC=20=EC=88=98=EC=A0=95=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/mole-grass.svg | 2 +- docs/mole.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/mole-grass.svg b/docs/mole-grass.svg index 4052812..1bc8165 100644 --- a/docs/mole-grass.svg +++ b/docs/mole-grass.svg @@ -31,7 +31,7 @@ 50% { transform: translate(0px, -8.5px); } - 0% { + 100% { transform: translate(0px, -10px); } } diff --git a/docs/mole.svg b/docs/mole.svg index b34dc0b..4fd7b8c 100644 --- a/docs/mole.svg +++ b/docs/mole.svg @@ -31,7 +31,7 @@ 50% { transform: translate(0px, -8.5px); } - 0% { + 100% { transform: translate(0px, -10px); } } From afd184af57c70f4f8477ea1845976e8539f4bb58 Mon Sep 17 00:00:00 2001 From: devxb Date: Thu, 30 May 2024 23:11:08 +0900 Subject: [PATCH 3/6] =?UTF-8?q?fix:=20mole=EC=9D=98=20body=EA=B0=80=200%?= =?UTF-8?q?=20->=2050%=20->=200%=20=EB=A1=9C=20=EA=B0=80=EB=8A=94=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=EB=A5=BC=20=EC=88=98=EC=A0=95=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/resources/persona/animal/mole-grass.svg | 2 +- src/main/resources/persona/animal/mole.svg | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/resources/persona/animal/mole-grass.svg b/src/main/resources/persona/animal/mole-grass.svg index 3564ef8..e497719 100644 --- a/src/main/resources/persona/animal/mole-grass.svg +++ b/src/main/resources/persona/animal/mole-grass.svg @@ -33,7 +33,7 @@ 50% { transform: translate(0px, -8.5px); } - 0% { + 100% { transform: translate(0px, -10px); } } diff --git a/src/main/resources/persona/animal/mole.svg b/src/main/resources/persona/animal/mole.svg index 8d8f45f..9ab5823 100644 --- a/src/main/resources/persona/animal/mole.svg +++ b/src/main/resources/persona/animal/mole.svg @@ -33,7 +33,7 @@ 50% { transform: translate(0px, -8.5px); } - 0% { + 100% { transform: translate(0px, -10px); } } From 739da3adf0e6e950ad6cacc60708dd7b232a4eb5 Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Tue, 4 Jun 2024 00:26:20 +0900 Subject: [PATCH 4/6] =?UTF-8?q?docs:=20=ED=99=88=ED=8E=98=EC=9D=B4?= =?UTF-8?q?=EC=A7=80=20=EB=A7=81=ED=81=AC=EB=A5=BC=20=EC=B6=94=EA=B0=80?= =?UTF-8?q?=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a30e540..fb555f3 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,11 @@
키운 펫은 다른사람과 거래할 수 있어요.

-40 종류가 넘는 펫을 뽑고 기르세요. +50 종류가 넘는 펫을 뽑고 기르세요. +
+ + [홈페이지](https://gitanimals.org) 에서 펫을 거래하고 관리할 수 있어요. +
@@ -95,8 +99,8 @@ farm mode는 갖고있는 모든 동물과 추가적인 정보를 보여줘요. 1. **커밋 30번하기** 커밋이 30번 누적되면 새로운 펫이 등장해요. 이때, 모든 펫들은 등장하는 확률이 달라요. - 이때, 최대로 얻을 수 있는 펫은 30개 입니다. 30개가 넘는 펫은 인벤토리로 들어가며, 언제든지 보여지는 펫과 교체할 수 있어요. **_<- 개발중_** -2. **펫 구매하기** **_<- 개발중_** + 이때, 최대로 얻을 수 있는 펫은 30개 입니다. 30개가 넘는 펫은 인벤토리로 들어가며, 홈페이지에서 언제든지 보여지는 펫과 교체할 수 있어요. +2. **펫 구매하기** 다른 유저가 판매하는 펫을 커밋포인트로 구매할 수 있어요. 커밋 1회당 일정량의 포인트가 지급됩니다. 혹은 자신의 펫을 판매해서 커밋포인트를 얻을수도 있어요. From 79a9bb474f79562099c9bfdebe2a3fd9e1f1b85d Mon Sep 17 00:00:00 2001 From: xb205 <62425964+devxb@users.noreply.github.com> Date: Tue, 4 Jun 2024 00:28:30 +0900 Subject: [PATCH 5/6] docs: Add Homepage link --- ENGLISH.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/ENGLISH.md b/ENGLISH.md index 0735467..bef29f7 100644 --- a/ENGLISH.md +++ b/ENGLISH.md @@ -23,7 +23,11 @@
You can trade the pets with others.

-Choose from over 40 different pets and raise them. +Choose from over 50 different pets and raise them. +
+ +You can buy and manage pet in [hompage](https://gitanimals.org) +
@@ -98,8 +102,8 @@ Pets can be acquired in two ways: When you accumulate 30 commits, a new pet will appear. At this point, all pets have different probabilities of appearing. The maximum number of pets you can have is 30. If you have more than 30 pets, they will go into - your inventory, and you can swap them with the pets displayed at any time. <- Under development -2. **Purchase Pets <- Under development** + your inventory, and you can swap them with the pets displayed at any time. +2. **Purchase Pets** You can buy pets sold by other users with commit points. A certain amount of points will be given per commit. Alternatively, you can sell your own pets to earn commit points. From 5e1934f5f2e2ee0c527f8a8d463dd0d1599e944e Mon Sep 17 00:00:00 2001 From: devxb Date: Fri, 7 Jun 2024 00:37:19 +0900 Subject: [PATCH 6/6] =?UTF-8?q?feat:=20RABBIT=20persona=EB=A5=BC=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ENGLISH.md | 1 + README.md | 1 + docs/rabbit.svg | 110 +++++++++++ .../gitanimals/render/domain/PersonaType.kt | 15 ++ .../org/gitanimals/render/domain/Svgs.kt | 3 + src/main/resources/persona/animal/rabbit.svg | 157 +++++++++++++++ src/test/resources/persona/goose/test.svg | 179 +++++++++--------- 7 files changed, 381 insertions(+), 85 deletions(-) create mode 100644 docs/rabbit.svg create mode 100644 src/main/resources/persona/animal/rabbit.svg diff --git a/ENGLISH.md b/ENGLISH.md index bef29f7..792b7dd 100644 --- a/ENGLISH.md +++ b/ENGLISH.md @@ -117,6 +117,7 @@ _New contributions may take up to 1 hour to be reflected._ | name | ratio | Description | |------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| RABBIT
| 0.9 | | | MOLE
| 0.3 | | | MOLE_GRASS
| 0.1 | | | QUOKKA
| 0.3 | | diff --git a/README.md b/README.md index fb555f3..4b1ec09 100644 --- a/README.md +++ b/README.md @@ -113,6 +113,7 @@ _새로운 contribution은 반영은 최대 1시간이 소요될 수 있어요._ | name | ratio | Description | |------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| RABBIT
| 0.9 | | | MOLE
| 0.3 | | | MOLE_GRASS
| 0.1 | | | QUOKKA
| 0.3 | | diff --git a/docs/rabbit.svg b/docs/rabbit.svg new file mode 100644 index 0000000..42519bb --- /dev/null +++ b/docs/rabbit.svg @@ -0,0 +1,110 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt b/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt index 8fd17a8..9414062 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt @@ -1086,6 +1086,21 @@ enum class PersonaType(private val weight: Double) { StringBuilder().moveRandomly("mole", id, 40, "180s", 5, 14.0) .toString() }, + RABBIT(0.9){ + override fun loadSvg(user: User, persona: Persona, mode: Mode): String { + return rabbitSvg.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() + }, ; init { diff --git a/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt b/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt index 25293e1..93d0d94 100644 --- a/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt +++ b/src/main/kotlin/org/gitanimals/render/domain/Svgs.kt @@ -193,6 +193,9 @@ val moleSvg: String = ClassPathResource("persona/animal/mole.svg") val moleGrassSvg: String = ClassPathResource("persona/animal/mole-grass.svg") .getContentAsString(Charset.defaultCharset()) +val rabbitSvg: String = ClassPathResource("persona/animal/rabbit.svg") + .getContentAsString(Charset.defaultCharset()) + val largeTextSvgs = lazy { val map = mutableMapOf() for (i in 'A'..'Z') { diff --git a/src/main/resources/persona/animal/rabbit.svg b/src/main/resources/persona/animal/rabbit.svg new file mode 100644 index 0000000..c855c06 --- /dev/null +++ b/src/main/resources/persona/animal/rabbit.svg @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + *{contribution} + + + + + + + + + + + + + + + + + + + + *{level} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/test/resources/persona/goose/test.svg b/src/test/resources/persona/goose/test.svg index 939bb42..23ac9d8 100644 --- a/src/test/resources/persona/goose/test.svg +++ b/src/test/resources/persona/goose/test.svg @@ -1,106 +1,115 @@ - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +