From 10a3c8f119c8540f5822d170fda781a8891e98df Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Thu, 4 Nov 2021 17:11:10 -0300 Subject: [PATCH 1/2] Added an item config for the Soul Dew --- include/constants/item_config.h | 1 + src/data/items.h | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/include/constants/item_config.h b/include/constants/item_config.h index 59f3ceb39a..89ec0dda41 100644 --- a/include/constants/item_config.h +++ b/include/constants/item_config.h @@ -18,6 +18,7 @@ #define I_KEY_ESCAPE_ROPE GEN_7 // In Gen8, Escape Rope became a Key Item. Keep in mind, this will make it free to buy in marts. #define I_LEGACY_HEALING_ITEMS GEN_7 // In Gen7+, certain healing items recover less HP than they used to. #define I_SITRUS_BERRY_HEAL GEN_7 // In Gen4+, Sitrus Berry was changed from healing 30 HP to healing 25% of Max HP. +#define I_SOUL_DEW_BOOST GEN_7 // In Gens3-6, Soul Dew boosts the stats of Lati@s by 50%. In Gen7+ it boosts the power of their Psychic and Dragon type moves by 20% instead. // Ball config #define I_LURE_BALL_MODIFIER GEN_7 // In Gen7+, Lure Ball's catch multiplier is x5 instead of x3. diff --git a/src/data/items.h b/src/data/items.h index 8e2843ada9..d0d2861bc1 100644 --- a/src/data/items.h +++ b/src/data/items.h @@ -2724,6 +2724,11 @@ const struct Item gItems[] = .name = _("Soul Dew"), .itemId = ITEM_SOUL_DEW, .price = 0, + #if defined(BATTLE_ENGINE) && I_SOUL_DEW_BOOST >= GEN_7 + .holdEffectParam = 20, + #elif defined(BATTLE_ENGINE) && I_SOUL_DEW_BOOST <= GEN_6 + .holdEffectParam = 50, + #endif .holdEffect = HOLD_EFFECT_SOUL_DEW, .description = sSoulDewDesc, .pocket = POCKET_ITEMS, From 05c7f7ebfb2a2f2d80f97d338eb5fdf1249f909c Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Fri, 5 Nov 2021 10:39:27 -0300 Subject: [PATCH 2/2] Fixed the comment for I_SOUL_DEW_BOOST --- include/constants/item_config.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/constants/item_config.h b/include/constants/item_config.h index 89ec0dda41..ab46849ce7 100644 --- a/include/constants/item_config.h +++ b/include/constants/item_config.h @@ -18,7 +18,7 @@ #define I_KEY_ESCAPE_ROPE GEN_7 // In Gen8, Escape Rope became a Key Item. Keep in mind, this will make it free to buy in marts. #define I_LEGACY_HEALING_ITEMS GEN_7 // In Gen7+, certain healing items recover less HP than they used to. #define I_SITRUS_BERRY_HEAL GEN_7 // In Gen4+, Sitrus Berry was changed from healing 30 HP to healing 25% of Max HP. -#define I_SOUL_DEW_BOOST GEN_7 // In Gens3-6, Soul Dew boosts the stats of Lati@s by 50%. In Gen7+ it boosts the power of their Psychic and Dragon type moves by 20% instead. +#define I_SOUL_DEW_BOOST GEN_7 // In Gens3-6, Soul Dew boosts Lati@s' Sp. Atk and Sp. Def by 50%. In Gen7+ it boosts the power of their Psychic and Dragon type moves by 20% instead. // Ball config #define I_LURE_BALL_MODIFIER GEN_7 // In Gen7+, Lure Ball's catch multiplier is x5 instead of x3.