mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-25 11:14: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
@ -298,8 +298,8 @@
|
||||
#define ANIM_TAG_BLUE_RING_2 (ANIM_SPRITES_START + 288)
|
||||
|
||||
// battlers
|
||||
#define ANIM_ATTACKER 0
|
||||
#define ANIM_TARGET 1
|
||||
#define ANIM_ATTACKER 0
|
||||
#define ANIM_TARGET 1
|
||||
#define ANIM_ATK_PARTNER 2
|
||||
#define ANIM_DEF_PARTNER 3
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user