Implemented OW_IGNORE_EGGS_ON_HEAL (#4888)
* Implemented OW_IGNORE_EGGS_ON_HEAL * Removed videos and change nPokemon to u32 * Changed OW_IGNORE_EGGS_ON_HEAL to GEN_LATEST per https://github.com/rh-hideout/pokeemerald-expansion/pull/4888\#issuecomment-2205271486 * Update include/config/overworld.h Fixed spelling error per https://github.com/rh-hideout/pokeemerald-expansion/pull/4888#discussion_r1664454436 Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com> --------- Co-authored-by: Alex <93446519+AlexOn1ine@users.noreply.github.com>
This commit is contained in:
parent
47426406c3
commit
2a5e4343c8
4 changed files with 11 additions and 6 deletions
|
@ -86,4 +86,7 @@
|
||||||
#define OW_POPUP_BW_TIME_MODE OW_POPUP_BW_TIME_NONE // Determines what type of time is shown.
|
#define OW_POPUP_BW_TIME_MODE OW_POPUP_BW_TIME_NONE // Determines what type of time is shown.
|
||||||
#define OW_POPUP_BW_ALPHA_BLEND FALSE // Enables alpha blending/transparency for the pop-ups. Mainly intended to be used with the black color option.
|
#define OW_POPUP_BW_ALPHA_BLEND FALSE // Enables alpha blending/transparency for the pop-ups. Mainly intended to be used with the black color option.
|
||||||
|
|
||||||
|
// Pokémon Center
|
||||||
|
#define OW_IGNORE_EGGS_ON_HEAL GEN_LATEST // In Gen 4+, the nurse in the Pokémon Center does not heal Eggs on healing machine.
|
||||||
|
|
||||||
#endif // GUARD_CONFIG_OVERWORLD_H
|
#endif // GUARD_CONFIG_OVERWORLD_H
|
||||||
|
|
|
@ -75,5 +75,6 @@ void SetWaldaPhrase(const u8 *src);
|
||||||
bool32 IsWaldaPhraseEmpty(void);
|
bool32 IsWaldaPhraseEmpty(void);
|
||||||
|
|
||||||
void EnterPokeStorage(u8 boxOption);
|
void EnterPokeStorage(u8 boxOption);
|
||||||
|
u32 CountPartyNonEggMons(void);
|
||||||
|
|
||||||
#endif // GUARD_POKEMON_STORAGE_SYSTEM_H
|
#endif // GUARD_POKEMON_STORAGE_SYSTEM_H
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#include "palette.h"
|
#include "palette.h"
|
||||||
#include "party_menu.h"
|
#include "party_menu.h"
|
||||||
#include "pokemon.h"
|
#include "pokemon.h"
|
||||||
|
#include "pokemon_storage_system.h"
|
||||||
#include "script.h"
|
#include "script.h"
|
||||||
#include "sound.h"
|
#include "sound.h"
|
||||||
#include "sprite.h"
|
#include "sprite.h"
|
||||||
|
@ -1015,10 +1016,10 @@ void MultiplyPaletteRGBComponents(u16 i, u8 r, u8 g, u8 b)
|
||||||
|
|
||||||
bool8 FldEff_PokecenterHeal(void)
|
bool8 FldEff_PokecenterHeal(void)
|
||||||
{
|
{
|
||||||
u8 nPokemon;
|
u32 nPokemon;
|
||||||
struct Task *task;
|
struct Task *task;
|
||||||
|
|
||||||
nPokemon = CalculatePlayerPartyCount();
|
nPokemon = (OW_IGNORE_EGGS_ON_HEAL <= GEN_3) ? CalculatePlayerPartyCount() : CountPartyNonEggMons();
|
||||||
task = &gTasks[CreateTask(Task_PokecenterHeal, 0xff)];
|
task = &gTasks[CreateTask(Task_PokecenterHeal, 0xff)];
|
||||||
task->tNumMons = nPokemon;
|
task->tNumMons = nPokemon;
|
||||||
task->tFirstBallX = 93;
|
task->tFirstBallX = 93;
|
||||||
|
|
|
@ -1436,9 +1436,9 @@ s16 GetFirstFreeBoxSpot(u8 boxId)
|
||||||
return -1; // all spots are taken
|
return -1; // all spots are taken
|
||||||
}
|
}
|
||||||
|
|
||||||
u8 CountPartyNonEggMons(void)
|
u32 CountPartyNonEggMons(void)
|
||||||
{
|
{
|
||||||
u16 i, count;
|
u32 i, count;
|
||||||
|
|
||||||
for (i = 0, count = 0; i < PARTY_SIZE; i++)
|
for (i = 0, count = 0; i < PARTY_SIZE; i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue