|
|
|
|
@@ -259,6 +259,8 @@ struct Evolution
|
|
|
|
|
| (((personality) & 0x00000003) >> 0) \
|
|
|
|
|
) % NUM_UNOWN_FORMS)
|
|
|
|
|
|
|
|
|
|
#define GET_SHINY_VALUE(otId, personality)HIHALF(otId) ^ LOHALF(otId) ^ HIHALF(personality) ^ LOHALF(personality)
|
|
|
|
|
|
|
|
|
|
extern u8 gPlayerPartyCount;
|
|
|
|
|
extern struct Pokemon gPlayerParty[PARTY_SIZE];
|
|
|
|
|
extern u8 gEnemyPartyCount;
|
|
|
|
|
@@ -273,8 +275,8 @@ extern const u8 *const gItemEffectTable[];
|
|
|
|
|
extern const u32 gExperienceTables[][MAX_LEVEL + 1];
|
|
|
|
|
extern const u16 *const gLevelUpLearnsets[];
|
|
|
|
|
extern const u8 gPPUpGetMask[];
|
|
|
|
|
extern const u8 gPPUpSetMask[];
|
|
|
|
|
extern const u8 gPPUpAddMask[];
|
|
|
|
|
extern const u8 gPPUpClearMask[];
|
|
|
|
|
extern const u8 gPPUpAddValues[];
|
|
|
|
|
extern const u8 gStatStageRatios[MAX_STAT_STAGE + 1][2];
|
|
|
|
|
extern const u16 gLinkPlayerFacilityClasses[];
|
|
|
|
|
extern const struct SpriteTemplate gBattlerSpriteTemplates[];
|
|
|
|
|
@@ -293,7 +295,7 @@ void CreateMonWithIVsPersonality(struct Pokemon *mon, u16 species, u8 level, u32
|
|
|
|
|
void CreateMonWithIVsOTID(struct Pokemon *mon, u16 species, u8 level, u8 *ivs, u32 otId);
|
|
|
|
|
void CreateMonWithEVSpread(struct Pokemon *mon, u16 species, u8 level, u8 fixedIV, u8 evSpread);
|
|
|
|
|
void CreateBattleTowerMon(struct Pokemon *mon, struct BattleTowerPokemon *src);
|
|
|
|
|
void CreateBattleTowerMon2(struct Pokemon *mon, struct BattleTowerPokemon *src, bool8 lvl50);
|
|
|
|
|
void CreateBattleTowerMon_HandleLevel(struct Pokemon *mon, struct BattleTowerPokemon *src, bool8 lvl50);
|
|
|
|
|
void CreateApprenticeMon(struct Pokemon *mon, const struct Apprentice *src, u8 monId);
|
|
|
|
|
void CreateMonWithEVSpreadNatureOTID(struct Pokemon *mon, u16 species, u8 level, u8 nature, u8 fixedIV, u8 evSpread, u32 otId);
|
|
|
|
|
void ConvertPokemonToBattleTowerPokemon(struct Pokemon *mon, struct BattleTowerPokemon *dest);
|
|
|
|
|
@@ -317,12 +319,7 @@ u16 MonTryLearningNewMove(struct Pokemon *mon, bool8 firstMove);
|
|
|
|
|
void DeleteFirstMoveAndGiveMoveToMon(struct Pokemon *mon, u16 move);
|
|
|
|
|
void DeleteFirstMoveAndGiveMoveToBoxMon(struct BoxPokemon *boxMon, u16 move);
|
|
|
|
|
s32 CalculateBaseDamage(struct BattlePokemon *attacker, struct BattlePokemon *defender, u32 move, u16 sideStatus, u16 powerOverride, u8 typeOverride, u8 bankAtk, u8 bankDef);
|
|
|
|
|
|
|
|
|
|
u8 CountAliveMonsInBattle(u8 caseId);
|
|
|
|
|
#define BATTLE_ALIVE_EXCEPT_ACTIVE 0
|
|
|
|
|
#define BATTLE_ALIVE_ATK_SIDE 1
|
|
|
|
|
#define BATTLE_ALIVE_DEF_SIDE 2
|
|
|
|
|
|
|
|
|
|
u8 GetDefaultMoveTarget(u8 battlerId);
|
|
|
|
|
u8 GetMonGender(struct Pokemon *mon);
|
|
|
|
|
u8 GetBoxMonGender(struct BoxPokemon *boxMon);
|
|
|
|
|
@@ -342,7 +339,6 @@ void SetMonData(struct Pokemon *mon, s32 field, const void *dataArg);
|
|
|
|
|
void SetBoxMonData(struct BoxPokemon *boxMon, s32 field, const void *dataArg);
|
|
|
|
|
void CopyMon(void *dest, void *src, size_t size);
|
|
|
|
|
u8 GiveMonToPlayer(struct Pokemon *mon);
|
|
|
|
|
u8 SendMonToPC(struct Pokemon* mon);
|
|
|
|
|
u8 CalculatePlayerPartyCount(void);
|
|
|
|
|
u8 CalculateEnemyPartyCount(void);
|
|
|
|
|
u8 GetMonsStateToDoubles(void);
|
|
|
|
|
@@ -374,7 +370,6 @@ u16 SpeciesToNationalPokedexNum(u16 species);
|
|
|
|
|
u16 SpeciesToHoennPokedexNum(u16 species);
|
|
|
|
|
u16 HoennToNationalOrder(u16 hoennNum);
|
|
|
|
|
u16 SpeciesToCryId(u16 species);
|
|
|
|
|
void sub_806D544(u16 species, u32 personality, u8 *dest);
|
|
|
|
|
void DrawSpindaSpots(u16 species, u32 personality, u8 *dest, u8 a4);
|
|
|
|
|
void EvolutionRenameMon(struct Pokemon *mon, u16 oldSpecies, u16 newSpecies);
|
|
|
|
|
u8 GetPlayerFlankId(void);
|
|
|
|
|
@@ -425,9 +420,7 @@ void DoMonFrontSpriteAnimation(struct Sprite* sprite, u16 species, bool8 noCry,
|
|
|
|
|
void PokemonSummaryDoMonAnimation(struct Sprite* sprite, u16 species, bool8 oneFrame);
|
|
|
|
|
void StopPokemonAnimationDelayTask(void);
|
|
|
|
|
void BattleAnimateBackSprite(struct Sprite* sprite, u16 species);
|
|
|
|
|
u8 sub_806EF08(u8 arg0);
|
|
|
|
|
u8 sub_806EF84(u8 arg0, u8 arg1);
|
|
|
|
|
u16 sub_806EFF0(u16 arg0);
|
|
|
|
|
u8 GetOpposingLinkMultiBattlerId(bool8 rightSide, u8 multiplayerId);
|
|
|
|
|
u16 FacilityClassToPicIndex(u16 facilityClass);
|
|
|
|
|
u16 PlayerGenderToFrontTrainerPicId(u8 playerGender);
|
|
|
|
|
void HandleSetPokedexFlag(u16 nationalNum, u8 caseId, u32 personality);
|
|
|
|
|
|