remove extra macro and shorten names

This commit is contained in:
garak
2018-11-13 16:19:52 -05:00
parent 269aebaca7
commit c6833c903c
6 changed files with 2976 additions and 2986 deletions
+2 -12
View File
@@ -10,20 +10,10 @@
.2byte \param0
.endm
.macro createsprite template, priority, argv:vararg
.macro createsprite template, anim_battler, subpriority_offset, argv:vararg
.byte 0x02
.4byte \template
.byte \priority
.byte (.Lsprite_\@_2 - .Lsprite_\@_1) / 2
.Lsprite_\@_1:
.2byte \argv
.Lsprite_\@_2:
.endm
.macro createsprite2 template, anim_battler, subpriority_offset, argv:vararg
.byte 0x02
.4byte \template
.if \anim_battler == ANIM_BATTLER_TARGET
.if \anim_battler == ANIM_TARGET
.byte 0x80 | (\subpriority_offset & 0x7F)
.else
.byte (\subpriority_offset & 0x7F)