diff options
author | ghoulslash <41651341+ghoulslash@users.noreply.github.com> | 2020-07-02 14:27:35 -0600 |
---|---|---|
committer | ghoulslash <41651341+ghoulslash@users.noreply.github.com> | 2020-07-02 14:27:35 -0600 |
commit | ae802a437018a53776b82d878e7bd433a5df2dad (patch) | |
tree | 70356e6d7707f13909866faa79701658ecaee43e | |
parent | 70fdfa99e8802ea7b3a6dd609d263d7f048337f8 (diff) |
Created Pokecenters Disregard Eggs (markdown)
-rw-r--r-- | Pokecenters-Disregard-Eggs.md | 23 |
1 files changed, 23 insertions, 0 deletions
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); +``` + + |