diff --git a/Pokecenters-Disregard-Eggs.md b/Pokecenters-Disregard-Eggs.md new file mode 100644 index 0000000..3253bef --- /dev/null +++ b/Pokecenters-Disregard-Eggs.md @@ -0,0 +1,23 @@ +## Pokecenters Disregard Eggs + +In Gen4+, pokecenters disregarded eggs for the healing animation. This replicates that effect in Pokeemerald + +### Replace the relevant party count +Open [src/field_effect.c](../blob/master/src/field_effect.c). Change [line 982](..blob/master/src/field_effect.c#L982) to: +```c +nPokemon = CountPartyNonEggMons(); +``` + +### Allow field_effect.c to recognize `CountPartyNonEggMons` +Keep [src/field_effect.c](../blob/master/src/field_effect.c) open. Add the following somewhere at the top: +```c +#include "pokemon_storage_system.h" +``` + +### Make `CountPartyNonEggMons` a global function +Open [include/pokemon_storage_system.h](../blob/master/include/pokemon_storage_system.h). Add the following to the bottom: +```c +u8 CountPartyNonEggMons(void); +``` + +