2017-11-16 20:38:10 +01:00
|
|
|
#ifndef GUARD_WILD_ENCOUNTER_H
|
|
|
|
#define GUARD_WILD_ENCOUNTER_H
|
|
|
|
|
2022-04-02 23:09:51 +02:00
|
|
|
#include "constants/wild_encounter.h"
|
2017-11-18 12:27:10 +01:00
|
|
|
|
2017-11-16 20:38:10 +01:00
|
|
|
struct WildPokemon
|
|
|
|
{
|
|
|
|
u8 minLevel;
|
|
|
|
u8 maxLevel;
|
|
|
|
u16 species;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WildPokemonInfo
|
|
|
|
{
|
|
|
|
u8 encounterRate;
|
|
|
|
const struct WildPokemon *wildPokemon;
|
|
|
|
};
|
|
|
|
|
|
|
|
struct WildPokemonHeader
|
|
|
|
{
|
|
|
|
u8 mapGroup;
|
|
|
|
u8 mapNum;
|
|
|
|
const struct WildPokemonInfo *landMonsInfo;
|
|
|
|
const struct WildPokemonInfo *waterMonsInfo;
|
|
|
|
const struct WildPokemonInfo *rockSmashMonsInfo;
|
|
|
|
const struct WildPokemonInfo *fishingMonsInfo;
|
|
|
|
};
|
|
|
|
|
|
|
|
extern const struct WildPokemonHeader gWildMonHeaders[];
|
2021-10-06 19:22:17 +02:00
|
|
|
extern bool8 gIsFishingEncounter;
|
|
|
|
extern bool8 gIsSurfingEncounter;
|
2017-11-16 20:38:10 +01:00
|
|
|
|
|
|
|
void DisableWildEncounters(bool8 disabled);
|
2017-11-18 12:27:10 +01:00
|
|
|
bool8 StandardWildEncounter(u16 currMetaTileBehavior, u16 previousMetaTileBehavior);
|
2017-11-16 20:38:10 +01:00
|
|
|
bool8 SweetScentWildEncounter(void);
|
|
|
|
bool8 DoesCurrentMapHaveFishingMons(void);
|
|
|
|
void FishingWildEncounter(u8 rod);
|
|
|
|
u16 GetLocalWildMon(bool8 *isWaterMon);
|
|
|
|
u16 GetLocalWaterMon(void);
|
|
|
|
bool8 UpdateRepelCounter(void);
|
2020-10-17 16:44:33 +02:00
|
|
|
bool8 TryDoDoubleWildBattle(void);
|
2017-11-16 20:38:10 +01:00
|
|
|
|
|
|
|
#endif // GUARD_WILD_ENCOUNTER_H
|