diff options
author | Thomas Winwood <twwinwood@gmail.com> | 2020-08-28 02:56:06 +0100 |
---|---|---|
committer | Thomas Winwood <twwinwood@gmail.com> | 2020-08-28 02:56:06 +0100 |
commit | ed8cd031d1c49601c82cd3ef0ee1c4135e4ea5a2 (patch) | |
tree | 28e6b499865eddb7d4fd8be0a09ba87008db87bd | |
parent | e297de0fb56384ef6d24ff122aa3761ce4149ef4 (diff) |
Updated Pokecenters Disregard Eggs (markdown)
-rw-r--r-- | Pokecenters-Disregard-Eggs.md | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/Pokecenters-Disregard-Eggs.md b/Pokecenters-Disregard-Eggs.md index e04e832..99735eb 100644 --- a/Pokecenters-Disregard-Eggs.md +++ b/Pokecenters-Disregard-Eggs.md @@ -5,9 +5,23 @@ Credit to ghoulslash 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(); +Open [src/field_effect.c](../blob/master/src/field_effect.c). Change `FldEff_PokecenterHeal` like so. +```diff +bool8 FldEff_PokecenterHeal(void) +{ + u8 nPokemon; + struct Task *task; + +- nPokemon = CalculatePlayerPartyCount(); ++ nPokemon = CountPartyNonEggMons(); + task = &gTasks[CreateTask(Task_PokecenterHeal, 0xff)]; + task->tNumMons = nPokemon; + task->tFirstBallX = 93; + task->tFirstBallY = 36; + task->tMonitorX = 124; + task->tMonitorY = 24; + return FALSE; +} ``` ### Allow field_effect.c to recognize `CountPartyNonEggMons` |