mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 03:34:15 +01:00
Merge pull request #383 from garakmon/createsprite
Update createsprite macro and rename BANK to BATTLER
This commit is contained in:
commit
032dd251e6
@ -10,10 +10,14 @@
|
||||
.2byte \param0
|
||||
.endm
|
||||
|
||||
.macro createsprite template, priority, argv:vararg
|
||||
.macro createsprite template, anim_battler, subpriority_offset, argv:vararg
|
||||
.byte 0x02
|
||||
.4byte \template
|
||||
.byte \priority
|
||||
.if \anim_battler == ANIM_TARGET
|
||||
.byte 0x80 | (\subpriority_offset & 0x7F)
|
||||
.else
|
||||
.byte (\subpriority_offset & 0x7F)
|
||||
.endif
|
||||
.byte (.Lsprite_\@_2 - .Lsprite_\@_1) / 2
|
||||
.Lsprite_\@_1:
|
||||
.2byte \argv
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user