sovereignx/include/field_specials.h

41 lines
1.4 KiB
C
Raw Normal View History

2017-10-12 08:06:19 +01:00
#ifndef GUARD_FIELD_SPECIALS_H
#define GUARD_FIELD_SPECIALS_H
2019-04-04 22:53:06 +01:00
extern bool8 gBikeCyclingChallenge;
extern u8 gBikeCollisions;
extern u16 gScrollableMultichoice_ScrollOffset;
2019-04-04 22:53:06 +01:00
2017-10-12 08:06:19 +01:00
u8 GetLeadMonIndex(void);
2019-09-17 06:49:07 +01:00
u8 IsDestinationBoxFull(void);
u16 GetPCBoxToSendMon(void);
2019-12-14 08:58:20 +00:00
bool8 InMultiPartnerRoom(void);
2019-11-17 22:34:11 +00:00
void UpdateTrainerFansAfterLinkBattle(void);
2018-12-28 19:10:02 +00:00
void IncrementBirthIslandRockStepCount(void);
2019-12-02 00:19:47 +00:00
bool8 AbnormalWeatherHasExpired(void);
2018-10-17 03:47:08 +01:00
bool8 ShouldDoBrailleRegicePuzzle(void);
2019-02-28 04:54:51 +00:00
bool32 ShouldDoWallyCall(void);
bool32 ShouldDoScottFortreeCall(void);
bool32 ShouldDoScottBattleFrontierCall(void);
2019-02-28 04:54:51 +00:00
bool32 ShouldDoRoxanneCall(void);
bool32 ShouldDoRivalRayquazaCall(void);
2018-10-17 03:47:08 +01:00
bool32 CountSSTidalStep(u16 delta);
2018-12-24 20:59:05 +00:00
u8 GetSSTidalLocation(s8 *mapGroup, s8 *mapNum, s16 *x, s16 *y);
2019-09-13 19:24:07 +01:00
void ShowScrollableMultichoice(void);
void FrontierGamblerSetWonOrLost(bool8 won);
2019-11-17 22:34:11 +00:00
u8 TryGainNewFanFromCounter(u8 incrementId);
2019-09-13 19:24:07 +01:00
bool8 InPokemonCenter(void);
2019-09-17 06:49:07 +01:00
void SetShoalItemFlag(u16 unused);
void UpdateFrontierManiac(u16 daysSince);
void UpdateFrontierGambler(u16 daysSince);
2019-02-08 17:48:51 +00:00
void ResetCyclingRoadChallengeData(void);
2019-09-13 19:24:07 +01:00
bool8 UsedPokemonCenterWarp(void);
void ResetFanClub(void);
2019-09-17 06:49:07 +01:00
bool8 ShouldShowBoxWasFullMessage(void);
void SetPCBoxToSendMon(u8 boxId);
Added support for XY's Sky Battles (#2950) * Original implementation from Phlayne * Moved Sky Battle Flag / Var into a config * Optimized existing code and fixed existing bugs Added error message for when sky battle var and flag are not set Merged CanDoSkyBattle and PrepareSkyBattle into one special * Added compatibility for Gen7+ * Commented out Volt Crash from banned moves * Cleaned up debug scripts from testing * Fixed bug where player did not white out even if they had no healthy Pokémon and only an egg Zeroed out both Sky Battle configs * Removed extra include from src/field_specials.c Removed extra line break in src/battle_script_commands.c * Added FLAG_DISABLED_IN_SKY_BATTLE Added FLAG_DISABLED_IN_SKY_BATTLE to appropriate moves * Changed DoesSkyBattleCancelCurrentMove to look at move flags * Fixed alignment and spacing in battle_moves.h * Added FLAG_DISABLED_IN_SKY_BATTLE to Sticky Web * Added FLAG_DISABLED_IN_SKY_BATTLE to Steel Roller * Disabled the ability to change Battle Terrain when Sky Battle is happening Stopped Ceaseless Edge from spawning Spikes when Sky Battle is happening Added B_SKY_BATTLE_STRICT_MECHANICS config * Fixed bug with SKY_BATTLE_STRICT_MECHANICS where conditions were not consistently being applied * Add rulesVariants to the BattleStruct Added skyBattle check in AllocateBattleResources * Replaced B_FLAG_SKY_BATTLE checks with rulesVariants.skyBattle checks * Fixed debug script * Reverted include/config/battle.h * Fixed spacing and placement of functions * Fixed debug script omission Fixed bug where Spikes did not set from Ceaseless Edge and Stone Axe * Added FLAG_DISABLED_IN_SKY_BATTLE to Psychic Terrain * Addressed DizzyEgg PR feedback * Forgot a file in last commit * Addressed feedback from DizzyEggg * Address Lunos' PR feedback * Update specials.inc Added an empty line at the end of data/specials.inc * Fixed spacing * Apply suggestions from code review Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com> * Updated skyBattleBanned and HandleBattleVariantEndParty to use correct names * Removed STRICT_MOVES and STRICT_MECHANICS * Fixed minor spacing issues with merge * Merged in upcoming * Implemented feedback from Jasper https://github.com/rh-hideout/pokeemerald-expansion/pull/2950/files/5da6117d1bc725900c6386e62ab719f8e1695027 --------- Co-authored-by: Eduardo Quezada D'Ottone <eduardo602002@gmail.com>
2023-11-26 15:59:44 +00:00
void PreparePartyForSkyBattle(void);
void GetObjectPosition(u16*, u16*, u32, u32);
bool32 CheckObjectAtXY(u32, u32);
bool32 CheckPartyHasSpecies(u32);
2017-10-12 08:06:19 +01:00
#endif // GUARD_FIELD_SPECIALS_H