From 8be17f55a97f8ccf5222c8b25ca67c3a141a79bd Mon Sep 17 00:00:00 2001 From: devxb Date: Sun, 8 Dec 2024 00:42:49 +0900 Subject: [PATCH 1/3] =?UTF-8?q?feat:=20CHRISTMAS=20=EC=BF=A0=ED=8F=B0?= =?UTF-8?q?=EC=BD=94=EB=93=9C=EB=A5=BC=20=EC=B6=94=EA=B0=80=ED=95=9C?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../org/gitanimals/coupon/app/CouponFacade.kt | 20 +++++++++---------- .../gitanimals/coupon/domain/CouponCodes.kt | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/src/main/kotlin/org/gitanimals/coupon/app/CouponFacade.kt b/src/main/kotlin/org/gitanimals/coupon/app/CouponFacade.kt index 36cadfc..5655997 100644 --- a/src/main/kotlin/org/gitanimals/coupon/app/CouponFacade.kt +++ b/src/main/kotlin/org/gitanimals/coupon/app/CouponFacade.kt @@ -24,9 +24,9 @@ class CouponFacade( return when (CouponCodes.getByCode(code)) { CouponCodes.NEW_USER_BONUS_PET -> useBonusCoupon(token, code, dynamic) - CouponCodes.HALLOWEEN_2024, - CouponCodes.HALLOWEEN_2024_STAR_BONUS -> { - val picked = halloweenCandidates.random() + CouponCodes.CHRISTMAS_2024_STAR_BONUS, + CouponCodes.CHRISTMAS_2024 -> { + val picked = christmasCandidates.random() useBonusCoupon(token, code, picked) return CouponUsedResponse(picked) } @@ -47,24 +47,24 @@ class CouponFacade( } private companion object { - private val halloweenCandidates = mutableListOf().also { candidates -> + private val christmasCandidates = mutableListOf().also { candidates -> repeat(500) { - candidates.add("SLIME_PUMPKIN_1") + candidates.add("SNOWMAN") } repeat(302) { - candidates.add("SLIME_PUMPKIN_2") + candidates.add("HAMSTER_SANTA") } repeat(150) { - candidates.add("GHOST") + candidates.add("LITTLE_CHICK_SANTA") } repeat(30) { - candidates.add("GHOST_KING") + candidates.add("RABBIT_BROWN_RUDOLPH") } repeat(15) { - candidates.add("SCREAM") + candidates.add("DESSERT_FOX_RUDOLPH") } repeat(3) { - candidates.add("SCREAM_GHOST") + candidates.add("SNOWMAN_MELT") } } } diff --git a/src/main/kotlin/org/gitanimals/coupon/domain/CouponCodes.kt b/src/main/kotlin/org/gitanimals/coupon/domain/CouponCodes.kt index 21065f8..79a8232 100644 --- a/src/main/kotlin/org/gitanimals/coupon/domain/CouponCodes.kt +++ b/src/main/kotlin/org/gitanimals/coupon/domain/CouponCodes.kt @@ -3,8 +3,8 @@ package org.gitanimals.coupon.domain enum class CouponCodes { NEW_USER_BONUS_PET, - HALLOWEEN_2024, - HALLOWEEN_2024_STAR_BONUS, + CHRISTMAS_2024, + CHRISTMAS_2024_STAR_BONUS, ; companion object { From ac48087fb02dcca9a7e70ef1d71aaea29f97dad2 Mon Sep 17 00:00:00 2001 From: devxb Date: Sun, 8 Dec 2024 00:46:39 +0900 Subject: [PATCH 2/3] =?UTF-8?q?feat:=20=EB=BD=91=EA=B8=B0=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=ED=81=AC=EB=A6=AC=EC=8A=A4=EB=A7=88=EC=8A=A4=20?= =?UTF-8?q?=ED=8E=AB=EB=93=A4=EC=9D=B4=20=EB=82=98=EC=98=AC=20=EC=88=98=20?= =?UTF-8?q?=EC=9E=88=EB=8F=84=EB=A1=9D=20=EC=B6=94=EA=B0=80=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/kotlin/org/gitanimals/gotcha/domain/GotchaType.kt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/kotlin/org/gitanimals/gotcha/domain/GotchaType.kt b/src/main/kotlin/org/gitanimals/gotcha/domain/GotchaType.kt index 898e297..424709e 100644 --- a/src/main/kotlin/org/gitanimals/gotcha/domain/GotchaType.kt +++ b/src/main/kotlin/org/gitanimals/gotcha/domain/GotchaType.kt @@ -101,6 +101,12 @@ enum class GotchaType( Capsule.of("HAMSTER_JAVA", 0.01), Capsule.of("HAMSTER_KOTLIN", 0.01), Capsule.of("HAMSTER_JS", 0.01), + Capsule.of("SNOWMAN_MELT", 0.001), + Capsule.of("SNOWMAN", 0.005), + Capsule.of("DESSERT_FOX_RUDOLPH", 0.005), + Capsule.of("RABBIT_BROWN_RUDOLPH", 0.007), + Capsule.of("LITTLE_CHICK_SANTA", 0.01), + Capsule.of("HAMSTER_SANTA", 0.01), ) } } From bec4d09ed5b7b878ff96a22e1ff722c3372d6bee Mon Sep 17 00:00:00 2001 From: devxb Date: Sun, 8 Dec 2024 00:46:56 +0900 Subject: [PATCH 3/3] =?UTF-8?q?feat:=20=EA=B2=BD=EB=A7=A4=EC=9E=A5=20?= =?UTF-8?q?=EA=B2=80=EC=83=89=EC=97=90=EC=84=9C=20=ED=81=AC=EB=A6=AC?= =?UTF-8?q?=EC=8A=A4=EB=A7=88=EC=8A=A4=ED=8E=AB=EC=9D=B4=20=EA=B2=80?= =?UTF-8?q?=EC=83=89=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= =?UTF-8?q?=ED=95=9C=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../kotlin/org/gitanimals/auction/domain/PersonaType.kt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/main/kotlin/org/gitanimals/auction/domain/PersonaType.kt b/src/main/kotlin/org/gitanimals/auction/domain/PersonaType.kt index 51bd79b..aa5a1c0 100644 --- a/src/main/kotlin/org/gitanimals/auction/domain/PersonaType.kt +++ b/src/main/kotlin/org/gitanimals/auction/domain/PersonaType.kt @@ -79,4 +79,11 @@ enum class PersonaType { HAMSTER_JAVA, HAMSTER_KOTLIN, HAMSTER_JS, + SNOWMAN_MELT, + SNOWMAN, + DESSERT_FOX_RUDOLPH, + RABBIT_BROWN_RUDOLPH, + LITTLE_CHICK_SANTA, + HAMSTER_SANTA, + ; }