diff options
author | Cleverking2003 <30466983+Cleverking2003@users.noreply.github.com> | 2020-08-28 20:03:59 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-28 20:03:59 +0300 |
commit | 98d8b5afbffbd248d3d8bd1358f1f1b9ed0f4150 (patch) | |
tree | d92f5e462b64a05b45e08e00cd17790fabb54acf /include/script_pokemon_util.h | |
parent | 186aa237dd5d843d119a3e0e1d404fe031f89dcf (diff) | |
parent | cd2529e8855bdf5bb725b40524478cf197b27a62 (diff) |
Merge pull request #271 from PikalaxALT/pikalax_work
player_data, daycare, use_item_on_mon, item_data.json
Diffstat (limited to 'include/script_pokemon_util.h')
-rw-r--r-- | include/script_pokemon_util.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/include/script_pokemon_util.h b/include/script_pokemon_util.h new file mode 100644 index 00000000..472e5d77 --- /dev/null +++ b/include/script_pokemon_util.h @@ -0,0 +1,17 @@ +#ifndef POKEDIAMOND_SCRIPT_POKEMON_UTIL_H +#define POKEDIAMOND_SCRIPT_POKEMON_UTIL_H + +BOOL MonNotFaintedOrEgg(struct Pokemon * pokemon); +BOOL GiveMon(u32 heap_id, struct SaveBlock2 * sav2, u16 species, u8 level, u16 item, u32 mapSec, u32 encounterType); +BOOL GiveEgg(u32 heapId, struct SaveBlock2 * sav2, u16 species, int level, int metLocIndex, int a3); +void PartyMonSetMoveInSlot(struct PlayerParty * party, int partySlot, int moveSlot, u16 move); +int GetIdxOfFirstPartyMonWithMove(struct PlayerParty * party, int move); +int CountAlivePokemon(struct PlayerParty * party); +struct Pokemon * GetFirstAliveMonInParty_CrashIfNone(struct PlayerParty * party); +struct Pokemon * GetFirstNonEggInParty(struct PlayerParty * party); +BOOL HasEnoughAlivePokemonForDoubleBattle(struct PlayerParty * party); +void GiveAllMonsTheSinnohChampRibbon(struct PlayerParty * party); +int ApplyPoisonStep(struct PlayerParty * party, int location); +BOOL SurvivePoisoning(struct Pokemon * mon); + +#endif //POKEDIAMOND_SCRIPT_POKEMON_UTIL_H |