From f62ec0630ae989ed79fb20261eed225ce62e9a5f Mon Sep 17 00:00:00 2001 From: LOuroboros Date: Tue, 16 Nov 2021 18:16:13 -0300 Subject: [PATCH] Updated Vitamins cap --- include/constants/item_config.h | 1 + include/constants/pokemon.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/constants/item_config.h b/include/constants/item_config.h index 8b6d828244..1b271d44cc 100644 --- a/include/constants/item_config.h +++ b/include/constants/item_config.h @@ -18,5 +18,6 @@ #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_NEW_VITAMIN_EV_CAP GEN_8 // In Gen8, the Vitamins no longer have a cap of 100 EV per stat. #endif // GUARD_CONSTANTS_ITEM_CONFIG_H diff --git a/include/constants/pokemon.h b/include/constants/pokemon.h index 8769390c33..ad32743532 100644 --- a/include/constants/pokemon.h +++ b/include/constants/pokemon.h @@ -278,7 +278,11 @@ #define USE_RANDOM_IVS (MAX_PER_STAT_IVS + 1) #define MAX_PER_STAT_EVS 255 #define MAX_TOTAL_EVS 510 +#if I_NEW_VITAMIN_EV_CAP >= GEN_8 +#define EV_ITEM_RAISE_LIMIT MAX_PER_STAT_EVS +#elif #define EV_ITEM_RAISE_LIMIT 100 +#endif // Battle move flags #define FLAG_MAKES_CONTACT (1 << 0)