Created Pokecenters Disregard Eggs (markdown)

ghoulslash 2020-07-02 14:27:35 -06:00
parent 70fdfa99e8
commit ae802a4370
1 changed files with 23 additions and 0 deletions

@ -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);
```