mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2025-01-13 23:23:43 +01:00
Quick syntax tweaks
This commit is contained in:
parent
de157919b0
commit
8c35a68060
@ -1731,14 +1731,6 @@
|
|||||||
.4byte \ptr
|
.4byte \ptr
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro photongeysercheck
|
|
||||||
various BS_ATTACKER, VARIOUS_PHOTON_GEYSER_CHECK
|
|
||||||
.endm
|
|
||||||
|
|
||||||
.macro shellsidearmcheck
|
|
||||||
various BS_ATTACKER, VARIOUS_SHELL_SIDE_ARM_CHECK
|
|
||||||
.endm
|
|
||||||
|
|
||||||
.macro trysetfairylock ptr:req
|
.macro trysetfairylock ptr:req
|
||||||
various BS_ATTACKER, VARIOUS_TRY_FAIRY_LOCK
|
various BS_ATTACKER, VARIOUS_TRY_FAIRY_LOCK
|
||||||
.4byte \ptr
|
.4byte \ptr
|
||||||
@ -1866,6 +1858,14 @@
|
|||||||
various BS_ATTACKER, VARIOUS_APPLY_PLASMA_FISTS
|
various BS_ATTACKER, VARIOUS_APPLY_PLASMA_FISTS
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
|
.macro photongeysercheck
|
||||||
|
various BS_ATTACKER, VARIOUS_PHOTON_GEYSER_CHECK
|
||||||
|
.endm
|
||||||
|
|
||||||
|
.macro shellsidearmcheck
|
||||||
|
various BS_ATTACKER, VARIOUS_SHELL_SIDE_ARM_CHECK
|
||||||
|
.endm
|
||||||
|
|
||||||
@ helpful macros
|
@ helpful macros
|
||||||
.macro setstatchanger stat:req, stages:req, down:req
|
.macro setstatchanger stat:req, stages:req, down:req
|
||||||
setbyte sSTATCHANGER \stat | \stages << 3 | \down << 7
|
setbyte sSTATCHANGER \stat | \stages << 3 | \down << 7
|
||||||
|
@ -918,7 +918,6 @@ extern u8 gBattleControllerData[MAX_BATTLERS_COUNT];
|
|||||||
extern bool8 gHasFetchedBall;
|
extern bool8 gHasFetchedBall;
|
||||||
extern u8 gLastUsedBall;
|
extern u8 gLastUsedBall;
|
||||||
extern u16 gLastThrownBall;
|
extern u16 gLastThrownBall;
|
||||||
|
|
||||||
extern bool8 gSwapDamageCategory; // Photon Geyser, Shell Side Arm, Light That Burns the Sky
|
extern bool8 gSwapDamageCategory; // Photon Geyser, Shell Side Arm, Light That Burns the Sky
|
||||||
|
|
||||||
#endif // GUARD_BATTLE_H
|
#endif // GUARD_BATTLE_H
|
||||||
|
@ -7271,7 +7271,7 @@ bool32 IsMoveMakingContact(u16 move, u8 battlerAtk)
|
|||||||
{
|
{
|
||||||
if (!(gBattleMoves[move].flags & FLAG_MAKES_CONTACT))
|
if (!(gBattleMoves[move].flags & FLAG_MAKES_CONTACT))
|
||||||
{
|
{
|
||||||
if (gBattleMoves[move].effect == EFFECT_SHELL_SIDE_ARM && gSwapDamageCategory == TRUE)
|
if (gBattleMoves[move].effect == EFFECT_SHELL_SIDE_ARM && gSwapDamageCategory)
|
||||||
return TRUE;
|
return TRUE;
|
||||||
else
|
else
|
||||||
return FALSE;
|
return FALSE;
|
||||||
@ -9077,7 +9077,7 @@ bool8 ShouldGetStatBadgeBoost(u16 badgeFlag, u8 battlerId)
|
|||||||
|
|
||||||
u8 GetBattleMoveSplit(u32 moveId)
|
u8 GetBattleMoveSplit(u32 moveId)
|
||||||
{
|
{
|
||||||
if (gSwapDamageCategory == TRUE) // Photon Geyser, Shell Side Arm, Light That Burns the Sky
|
if (gSwapDamageCategory) // Photon Geyser, Shell Side Arm, Light That Burns the Sky
|
||||||
return SPLIT_PHYSICAL;
|
return SPLIT_PHYSICAL;
|
||||||
else if (IS_MOVE_STATUS(moveId) || B_PHYSICAL_SPECIAL_SPLIT >= GEN_4)
|
else if (IS_MOVE_STATUS(moveId) || B_PHYSICAL_SPECIAL_SPLIT >= GEN_4)
|
||||||
return gBattleMoves[moveId].split;
|
return gBattleMoves[moveId].split;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user