From 28cffda9d4b9152af6fe9d722c86a98e00a73438 Mon Sep 17 00:00:00 2001 From: Eduardo Quezada Date: Thu, 22 Dec 2022 10:38:54 -0300 Subject: [PATCH] Hatch level config --- include/config/pokemon.h | 1 + include/constants/daycare.h | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/include/config/pokemon.h b/include/config/pokemon.h index 0416de5e2c..3970db142e 100644 --- a/include/config/pokemon.h +++ b/include/config/pokemon.h @@ -10,6 +10,7 @@ // Breeding settings #define P_NIDORAN_M_DITTO_BREED GEN_LATEST // Since Gen 5, when Nidoran♂ breeds with Ditto it can produce Nidoran♀ offspring. Before, it would only yield male offspring. This change also applies to Volbeat. #define P_INCENSE_BREEDING GEN_LATEST // Since Gen 9, cross-generation Baby Pokémon don't require Incense being held by the parents to be obtained via breeding. +#define P_EGG_HATCH_LEVEL GEN_LATEST // Since Gen 4, Pokémon will hatch from eggs at level 1 instead of 5. // Other settings #define P_SHEDINJA_BALL GEN_LATEST // Since Gen 4, Shedinja requires a Poké Ball for its evolution. In Gen 3, Shedinja inherits Nincada's Ball. diff --git a/include/constants/daycare.h b/include/constants/daycare.h index 9af7e6f79c..ac48e4f716 100644 --- a/include/constants/daycare.h +++ b/include/constants/daycare.h @@ -14,7 +14,11 @@ #define DAYCARE_TWO_MONS 3 #define INHERITED_IV_COUNT 3 +#if P_EGG_HATCH_LEVEL >= GEN_4 +#define EGG_HATCH_LEVEL 1 +#else #define EGG_HATCH_LEVEL 5 +#endif #define EGG_GENDER_MALE 0x8000 // used to create a male egg from a female-only parent species (e.g. Nidoran) #define DAYCARE_LEVEL_MENU_EXIT 5