Skip to content

Commit

Permalink
release: 0.6.0 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
devxb committed Jun 6, 2024
2 parents 3262f59 + 5e1934f commit 3390fb5
Show file tree
Hide file tree
Showing 11 changed files with 405 additions and 101 deletions.
11 changes: 8 additions & 3 deletions ENGLISH.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@
<br> You can trade the pets with others.
<br>
<br>
Choose from over 40 different pets and raise them.
Choose from over 50 different pets and raise them.
<br>

You can buy and manage pet in [hompage](https://gitanimals.org)

</h4>
<br>
<a href="https://github.com/devxb/gitanimals">
Expand Down Expand Up @@ -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.
Expand All @@ -113,6 +117,7 @@ _New contributions may take up to 1 hour to be reflected._

| name | ratio | Description |
|------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| RABBIT <br> <img src = "docs/rabbit.svg" width="40px" height="55px"/> | 0.9 | |
| MOLE <br> <img src = "docs/mole.svg" width="40px" height="45px" /> | 0.3 | |
| MOLE_GRASS <br> <img src = "docs/mole-grass.svg" width="45px" height="45px" /> | 0.1 | |
| QUOKKA <br> <img src = "docs/quokka.svg" width="23px" height="42px" /> | 0.3 | |
Expand Down
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
<br> 키운 펫은 다른사람과 거래할 수 있어요.
<br>
<br>
40 종류가 넘는 펫을 뽑고 기르세요.
50 종류가 넘는 펫을 뽑고 기르세요.
<br>

[홈페이지](https://gitanimals.org) 에서 펫을 거래하고 관리할 수 있어요.

</h4>
<br>
<a href="https://github.com/devxb/gitanimals">
Expand Down Expand Up @@ -95,8 +99,8 @@ farm mode는 갖고있는 모든 동물과 추가적인 정보를 보여줘요.

1. **커밋 30번하기**
커밋이 30번 누적되면 새로운 펫이 등장해요. 이때, 모든 펫들은 등장하는 확률이 달라요.
이때, 최대로 얻을 수 있는 펫은 30개 입니다. 30개가 넘는 펫은 인벤토리로 들어가며, 언제든지 보여지는 펫과 교체할 수 있어요. **_<- 개발중_**
2. **펫 구매하기** **_<- 개발중_**
이때, 최대로 얻을 수 있는 펫은 30개 입니다. 30개가 넘는 펫은 인벤토리로 들어가며, 홈페이지에서 언제든지 보여지는 펫과 교체할 수 있어요.
2. **펫 구매하기**
다른 유저가 판매하는 펫을 커밋포인트로 구매할 수 있어요.
커밋 1회당 일정량의 포인트가 지급됩니다. 혹은 자신의 펫을 판매해서 커밋포인트를 얻을수도 있어요.

Expand All @@ -109,6 +113,7 @@ _새로운 contribution은 반영은 최대 1시간이 소요될 수 있어요._

| name | ratio | Description |
|------------------------------------------------------------------------------------------------------|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| RABBIT <br> <img src = "docs/rabbit.svg" width="40px" height="55px"/> | 0.9 | |
| MOLE <br> <img src = "docs/mole.svg" width="40px" height="45px" /> | 0.3 | |
| MOLE_GRASS <br> <img src = "docs/mole-grass.svg" width="45px" height="45px" /> | 0.1 | |
| QUOKKA <br> <img src = "docs/quokka.svg" width="23px" height="42px" /> | 0.3 | |
Expand Down
8 changes: 4 additions & 4 deletions docs/mole-grass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions docs/mole.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
110 changes: 110 additions & 0 deletions docs/rabbit.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions src/main/kotlin/org/gitanimals/render/domain/PersonaType.kt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
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 @@ -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<String, String>()
for (i in 'A'..'Z') {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/persona/animal/mole-grass.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion src/main/resources/persona/animal/mole.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 3390fb5

Please sign in to comment.