diff options
author | DizzyEggg <jajkodizzy@wp.pl> | 2019-03-30 12:37:18 +0100 |
---|---|---|
committer | huderlem <huderlem@gmail.com> | 2019-03-30 08:29:56 -0500 |
commit | 35cffea9874a8b135eddade958b62ee2ecf441c1 (patch) | |
tree | 5b989a652bf5a826b2f41615572b153fba1f056f /asm/macros/battle_script.inc | |
parent | 818468833020bd38acdf654fa555378d6a9c2b54 (diff) |
Helpful macros for atk49
Diffstat (limited to 'asm/macros/battle_script.inc')
-rw-r--r-- | asm/macros/battle_script.inc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/asm/macros/battle_script.inc b/asm/macros/battle_script.inc index ed32e4643..7a1af4c17 100644 --- a/asm/macros/battle_script.inc +++ b/asm/macros/battle_script.inc @@ -403,6 +403,38 @@ .byte \param0 .byte \param1 .endm + + @ Help macros for 5 uses of moveend command + + @ All cases + .macro moveendall + setbyte sMOVEEND_STATE, 0 + moveend 0, 0 + .endm + + @ Chosen case + .macro moveendcase case:req + setbyte sMOVEEND_STATE, \case + moveend 1, 0 + .endm + + @ All cases from (inclusive) + .macro moveendfrom from:req + setbyte sMOVEEND_STATE, \from + moveend 0, 0 + .endm + + @ All cases from 0 to (not inclusive) + .macro moveendto to:req + setbyte sMOVEEND_STATE, 0 + moveend 2, \to + .endm + + @ Cases from (inclusive) to (not inclusive) + .macro moveendfromto from:req, to:req + setbyte sMOVEEND_STATE, \from + moveend 2, \to + .endm .macro typecalc2 .byte 0x4a |