mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-11-16 19:47:35 +01:00
8d848997c9
* Turns for Uproar * Chances for the amount of hits with multi-hit moves. * Electric type mon's immunity to paralysis * (Hi) Jump Kick to always do 1/2 of maxHP when crashing * Turns for Disable. * Minimized mons can always be hit by moves like Stomp * Grass types immune to powder and spore moves. * Psywave's damage formula * Fixed random usage.
32 lines
1.3 KiB
C
32 lines
1.3 KiB
C
#ifndef GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
#define GUARD_BATTLE_SCRIPT_COMMANDS_H
|
|
|
|
#define WINDOW_CLEAR 0x1
|
|
#define WINDOW_x80 0x80
|
|
|
|
s32 CalcCritChanceStage(u8 battlerAtk, u8 battlerDef, u32 move, bool32 recordAbility);
|
|
u32 GetTotalAccuracy(u32 battlerAtk, u32 battlerDef, u32 move);
|
|
u8 GetBattlerTurnOrderNum(u8 battlerId);
|
|
bool32 NoAliveMonsForEitherParty(void);
|
|
void SetMoveEffect(bool32 primary, u32 certain);
|
|
bool32 CanBattlerSwitch(u32 battlerId);
|
|
void BattleDestroyYesNoCursorAt(u8 cursorPosition);
|
|
void BattleCreateYesNoCursorAt(u8 cursorPosition);
|
|
void BufferMoveToLearnIntoBattleTextBuff2(void);
|
|
void HandleBattleWindow(u8 xStart, u8 yStart, u8 xEnd, u8 yEnd, u8 flags);
|
|
bool8 UproarWakeUpCheck(u8 battlerId);
|
|
bool32 DoesSubstituteBlockMove(u8 battlerAtk, u8 battlerDef, u32 move);
|
|
bool32 DoesDisguiseBlockMove(u8 battlerAtk, u8 battlerDef, u32 move);
|
|
bool32 CanPoisonType(u8 battlerAttacker, u8 battlerTarget);
|
|
bool32 CanParalyzeType(u8 battlerAttacker, u8 battlerTarget);
|
|
bool32 CanUseLastResort(u8 battlerId);
|
|
u32 IsFlowerVeilProtected(u32 battler);
|
|
u32 IsLeafGuardProtected(u32 battler);
|
|
bool32 IsShieldsDownProtected(u32 battler);
|
|
u32 IsAbilityStatusProtected(u32 battler);
|
|
|
|
extern void (* const gBattleScriptingCommandsTable[])(void);
|
|
extern const u8 gUnknown_0831C494[][4];
|
|
|
|
#endif // GUARD_BATTLE_SCRIPT_COMMANDS_H
|