Merge pull request #1864 from LOuroboros/soulDewIE

Added an item config for the Soul Dew
This commit is contained in:
Eduardo Quezada D'Ottone 2021-11-05 17:09:58 -03:00 committed by GitHub
commit 18c84fc732
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 0 deletions

View File

@ -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_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_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_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 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 // Ball config
#define I_LURE_BALL_MODIFIER GEN_7 // In Gen7+, Lure Ball's catch multiplier is x5 instead of x3. #define I_LURE_BALL_MODIFIER GEN_7 // In Gen7+, Lure Ball's catch multiplier is x5 instead of x3.

View File

@ -2724,6 +2724,11 @@ const struct Item gItems[] =
.name = _("Soul Dew"), .name = _("Soul Dew"),
.itemId = ITEM_SOUL_DEW, .itemId = ITEM_SOUL_DEW,
.price = 0, .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, .holdEffect = HOLD_EFFECT_SOUL_DEW,
.description = sSoulDewDesc, .description = sSoulDewDesc,
.pocket = POCKET_ITEMS, .pocket = POCKET_ITEMS,