diff options
author | YamaArashi <shadow962@live.com> | 2016-08-19 01:17:15 -0700 |
---|---|---|
committer | YamaArashi <shadow962@live.com> | 2016-08-19 01:17:15 -0700 |
commit | 755f765cf36eba612b1773a0fd5d815e6abc40df (patch) | |
tree | db35b1804b69687036fbd08e15d9ba75811281f3 /asm/macros | |
parent | c11e508e0507aba63e15bd43820baea98814bcde (diff) |
move used count macros
Diffstat (limited to 'asm/macros')
-rwxr-xr-x | asm/macros/contest_ai_script.s | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/asm/macros/contest_ai_script.s b/asm/macros/contest_ai_script.s index 3bcff01da..bff847025 100755 --- a/asm/macros/contest_ai_script.s +++ b/asm/macros/contest_ai_script.s @@ -244,22 +244,32 @@ @ 38 @ 39 @ 3A -@ 3B -@ 3C - .macro contest_3D param addr +@ number of times current move has been used + + .macro get_move_used_count + .byte 0x3B + .endm + + .macro if_move_used_count_less_than param, addr + .byte 0x3C + .byte \param + .4byte \addr + .endm + + .macro if_move_used_count_more_than param, addr .byte 0x3D .byte \param .4byte \addr .endm - .macro if_move_used_count_eq param addr + .macro if_move_used_count_eq param, addr .byte 0x3E .byte \param .4byte \addr .endm - .macro contest_3F param addr + .macro if_move_used_count_not_eq param, addr .byte 0x3F .byte \param .4byte \addr |