mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +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
|
.2byte \param0
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro createsprite template, priority, argv:vararg
|
.macro createsprite template, anim_battler, subpriority_offset, argv:vararg
|
||||||
.byte 0x02
|
.byte 0x02
|
||||||
.4byte \template
|
.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
|
.byte (.Lsprite_\@_2 - .Lsprite_\@_1) / 2
|
||||||
.Lsprite_\@_1:
|
.Lsprite_\@_1:
|
||||||
.2byte \argv
|
.2byte \argv
|
||||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user