From ae802a437018a53776b82d878e7bd433a5df2dad Mon Sep 17 00:00:00 2001 From: ghoulslash <41651341+ghoulslash@users.noreply.github.com> Date: Thu, 2 Jul 2020 14:27:35 -0600 Subject: Created Pokecenters Disregard Eggs (markdown) --- Pokecenters-Disregard-Eggs.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Pokecenters-Disregard-Eggs.md 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); +``` + + -- cgit v1.2.3