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, + ; } 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 { 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), ) } }