Merge branch 'battle_engine' of https://github.com/rh-hideout/pokeemerald-expansion into HEAD
This commit is contained in:
1 parent
be3d9c1c6d
commit
fa39dc76dc
528 files changed
+8759
-16995
No files matched your search
@@ -1932,6 +1932,42 @@
|
||||
various BS_ATTACKER, VARIOUS_SHELL_SIDE_ARM_CHECK
|
||||
.endm
|
||||
|
||||
.macro jumpifcantfling battler:req, ptr:req
|
||||
various \battler, VARIOUS_JUMP_IF_CANT_FLING
|
||||
.4byte \ptr
|
||||
.endm
|
||||
|
||||
.macro curecertainstatuses battler:req
|
||||
various \battler, VARIOUS_CURE_CERTAIN_STATUSES
|
||||
.endm
|
||||
|
||||
.macro tryresetnegativestatstages battler:req
|
||||
various \battler, VARIOUS_TRY_RESET_NEGATIVE_STAT_STAGES
|
||||
.endm
|
||||
|
||||
.macro jumpiflastuseditemberry ptr:req
|
||||
various BS_ATTACKER, VARIOUS_JUMP_IF_LAST_USED_ITEM_BERRY
|
||||
.4byte \ptr
|
||||
.endm
|
||||
|
||||
.macro jumpiflastuseditemholdeffect battler:req, holdEffect:req, ptr:req
|
||||
various \battler, VARIOUS_JUMP_IF_LAST_USED_ITEM_HOLD_EFFECT
|
||||
.byte \holdEffect
|
||||
.4byte \ptr
|
||||
.endm
|
||||
|
||||
.macro savebattleritem battler:req
|
||||
various \battler, VARIOUS_SAVE_BATTLER_ITEM
|
||||
.endm
|
||||
|
||||
.macro restorebattleritem battler:req
|
||||
various \battler, VARIOUS_RESTORE_BATTLER_ITEM
|
||||
.endm
|
||||
|
||||
.macro battleritemtolastuseditem battler:req
|
||||
various \battler, VARIOUS_BATTLER_ITEM_TO_LAST_USED_ITEM
|
||||
.endm
|
||||
|
||||
@ helpful macros
|
||||
.macro setstatchanger stat:req, stages:req, down:req
|
||||
setbyte sSTATCHANGER, \stat | \stages << 3 | \down << 7
|
||||
@@ -2061,3 +2097,26 @@
|
||||
jumpifsideaffecting BS_TARGET, SIDE_STATUS_SAFEGUARD, \jumpptr
|
||||
1:
|
||||
.endm
|
||||
|
||||
@ Will jump to script pointer if the target weighs less than 200 kg, or 441 lbs.
|
||||
.macro jumpifunder200 battler:req, ptr:req
|
||||
various \battler, VARIOUS_JUMP_IF_UNDER_200
|
||||
.4byte \ptr
|
||||
.endm
|
||||
|
||||
@ Sets the sky drop status and does all other necessary operations
|
||||
.macro setskydrop
|
||||
various 0, VARIOUS_SET_SKY_DROP
|
||||
.endm
|
||||
|
||||
@ Clears the sky drop status and does all other necessary operations.
|
||||
@ If the target fainted in before this script is called, it goes to the given script.
|
||||
.macro clearskydrop ptr:req
|
||||
various 0, VARIOUS_CLEAR_SKY_DROP
|
||||
.4byte \ptr
|
||||
.endm
|
||||
|
||||
@ Accounts for if the target of Sky Drop was in confuse_lock when the attacker falls asleep due to Yawn.
|
||||
.macro skydropyawn
|
||||
various 0, VARIOUS_SKY_DROP_YAWN
|
||||
.endm
|
||||
Reference in new issue
Block a user