mirror of
https://github.com/Ninjdai1/pokeemerald.git
synced 2024-12-26 11:44:17 +01:00
Merge pull request #373 from garakmon/battle-anim
Split battle_anim_80FE840 and move data to C
This commit is contained in:
commit
2837859bdb
File diff suppressed because it is too large
Load Diff
9550
asm/battle_anim_effects_1.s
Normal file
9550
asm/battle_anim_effects_1.s
Normal file
File diff suppressed because it is too large
Load Diff
7544
asm/battle_anim_effects_2.s
Normal file
7544
asm/battle_anim_effects_2.s
Normal file
File diff suppressed because it is too large
Load Diff
3059
asm/battle_anim_utility_funcs.s
Normal file
3059
asm/battle_anim_utility_funcs.s
Normal file
File diff suppressed because it is too large
Load Diff
2035
asm/battle_intro.s
Normal file
2035
asm/battle_intro.s
Normal file
File diff suppressed because it is too large
Load Diff
791
asm/bug.s
Normal file
791
asm/bug.s
Normal file
@ -0,0 +1,791 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8110368
|
||||
sub_8110368: @ 8110368
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110394
|
||||
adds r0, r6, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAffineAnim
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r1, [r0, 0x4]
|
||||
negs r1, r1
|
||||
strh r1, [r0, 0x4]
|
||||
ldrh r1, [r0]
|
||||
negs r1, r1
|
||||
strh r1, [r0]
|
||||
b _081103C4
|
||||
.pool
|
||||
_08110394:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _081103C4
|
||||
adds r0, r6, 0
|
||||
movs r1, 0x1
|
||||
bl StartSpriteAffineAnim
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x2]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x2]
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
ldrh r0, [r1, 0x6]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x6]
|
||||
ldrh r0, [r1]
|
||||
negs r0, r0
|
||||
strh r0, [r1]
|
||||
_081103C4:
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
ldr r4, =gBattleAnimArgs
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x20]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x2]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x22]
|
||||
ldrh r0, [r4, 0x8]
|
||||
strh r0, [r6, 0x2E]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x32]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r4, [r4, 0x6]
|
||||
adds r0, r4
|
||||
strh r0, [r6, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r6, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r6, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110368
|
||||
|
||||
thumb_func_start sub_8110438
|
||||
sub_8110438: @ 8110438
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0811045C
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
negs r0, r0
|
||||
strh r0, [r1]
|
||||
adds r0, r6, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAffineAnim
|
||||
b _08110478
|
||||
.pool
|
||||
_0811045C:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _08110478
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r1, [r0, 0x2]
|
||||
negs r1, r1
|
||||
strh r1, [r0, 0x2]
|
||||
ldrh r1, [r0]
|
||||
negs r1, r1
|
||||
strh r1, [r0]
|
||||
_08110478:
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
ldr r4, =gBattleAnimArgs
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x20]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord2
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x2]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x22]
|
||||
ldrh r0, [r4, 0x4]
|
||||
strh r0, [r6, 0x2E]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r6, 0x32]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r6, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r6, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r6, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110438
|
||||
|
||||
thumb_func_start sub_81104E4
|
||||
sub_81104E4: @ 81104E4
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110500
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r0, r2]
|
||||
lsrs r2, r1, 31
|
||||
adds r1, r2
|
||||
asrs r1, 1
|
||||
strh r1, [r0, 0x4]
|
||||
_08110500:
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldrh r0, [r5, 0x20]
|
||||
strh r0, [r5, 0x30]
|
||||
ldrh r0, [r5, 0x22]
|
||||
strh r0, [r5, 0x34]
|
||||
movs r2, 0x8
|
||||
ldrsh r0, [r1, r2]
|
||||
cmp r0, 0
|
||||
bne _08110548
|
||||
ldr r4, =gBattleAnimTarget
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x32]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x36]
|
||||
b _0811055A
|
||||
.pool
|
||||
_08110548:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r5, 0
|
||||
adds r2, 0x32
|
||||
adds r3, r5, 0
|
||||
adds r3, 0x36
|
||||
movs r1, 0x1
|
||||
bl SetAverageBattlerPositions
|
||||
_0811055A:
|
||||
adds r0, r5, 0
|
||||
bl sub_80A6FD4
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r0, [r0, 0x6]
|
||||
strh r0, [r5, 0x38]
|
||||
ldr r0, =sub_811057C
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81104E4
|
||||
|
||||
thumb_func_start sub_811057C
|
||||
sub_811057C: @ 811057C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl TranslateAnimLinear
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110592
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
b _081105AE
|
||||
_08110592:
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x38
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Sin
|
||||
ldrh r1, [r4, 0x24]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x24]
|
||||
ldrh r0, [r4, 0x3A]
|
||||
adds r0, 0xD
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r4, 0x3A]
|
||||
_081105AE:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_811057C
|
||||
|
||||
thumb_func_start sub_81105B4
|
||||
sub_81105B4: @ 81105B4
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x20
|
||||
adds r3, r4, 0
|
||||
adds r3, 0x22
|
||||
movs r1, 0
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081105F0
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r1, [r4, 0x20]
|
||||
ldrh r2, [r0]
|
||||
subs r1, r2
|
||||
strh r1, [r4, 0x20]
|
||||
b _081105FC
|
||||
.pool
|
||||
_081105F0:
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
ldrh r2, [r4, 0x20]
|
||||
adds r0, r2
|
||||
strh r0, [r4, 0x20]
|
||||
adds r0, r1, 0
|
||||
_081105FC:
|
||||
ldrh r0, [r0, 0x2]
|
||||
ldrh r1, [r4, 0x22]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x22]
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _08110618
|
||||
ldrh r0, [r4, 0x22]
|
||||
adds r0, 0x8
|
||||
strh r0, [r4, 0x22]
|
||||
_08110618:
|
||||
ldr r0, =sub_8110630
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81105B4
|
||||
|
||||
thumb_func_start sub_8110630
|
||||
sub_8110630: @ 8110630
|
||||
push {lr}
|
||||
adds r3, r0, 0
|
||||
ldrh r0, [r3, 0x2E]
|
||||
adds r0, 0x1
|
||||
strh r0, [r3, 0x2E]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3
|
||||
bne _08110664
|
||||
movs r0, 0
|
||||
strh r0, [r3, 0x2E]
|
||||
movs r0, 0x3E
|
||||
adds r0, r3
|
||||
mov r12, r0
|
||||
ldrb r2, [r0]
|
||||
lsls r0, r2, 29
|
||||
lsrs r0, 31
|
||||
movs r1, 0x1
|
||||
eors r1, r0
|
||||
lsls r1, 2
|
||||
movs r0, 0x5
|
||||
negs r0, r0
|
||||
ands r0, r2
|
||||
orrs r0, r1
|
||||
mov r1, r12
|
||||
strb r0, [r1]
|
||||
_08110664:
|
||||
ldrh r0, [r3, 0x30]
|
||||
adds r0, 0x1
|
||||
strh r0, [r3, 0x30]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x33
|
||||
bne _08110678
|
||||
adds r0, r3, 0
|
||||
bl DestroyAnimSprite
|
||||
_08110678:
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_8110630
|
||||
|
||||
thumb_func_start sub_811067C
|
||||
sub_811067C: @ 811067C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
movs r1, 0xFD
|
||||
lsls r1, 6
|
||||
movs r0, 0x50
|
||||
bl SetGpuReg
|
||||
movs r0, 0x52
|
||||
movs r1, 0x10
|
||||
bl SetGpuReg
|
||||
movs r0, 0x10
|
||||
strh r0, [r4, 0x2E]
|
||||
ldr r0, =sub_81106A4
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_811067C
|
||||
|
||||
thumb_func_start sub_81106A4
|
||||
sub_81106A4: @ 81106A4
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldrh r1, [r4, 0x32]
|
||||
movs r2, 0x32
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0x13
|
||||
bgt _081106B8
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x32]
|
||||
b _081106F6
|
||||
_081106B8:
|
||||
ldrh r1, [r4, 0x30]
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x30]
|
||||
movs r0, 0x1
|
||||
ands r0, r1
|
||||
cmp r0, 0
|
||||
beq _081106F6
|
||||
ldrh r1, [r4, 0x2E]
|
||||
subs r1, 0x1
|
||||
strh r1, [r4, 0x2E]
|
||||
movs r0, 0x10
|
||||
subs r0, r1
|
||||
lsls r0, 8
|
||||
orrs r1, r0
|
||||
lsls r1, 16
|
||||
lsrs r1, 16
|
||||
movs r0, 0x52
|
||||
bl SetGpuReg
|
||||
movs r1, 0x2E
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r0, 0
|
||||
bne _081106F6
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x4
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
ldr r0, =sub_8110700
|
||||
str r0, [r4, 0x1C]
|
||||
_081106F6:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81106A4
|
||||
|
||||
thumb_func_start sub_8110700
|
||||
sub_8110700: @ 8110700
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
movs r0, 0x50
|
||||
movs r1, 0
|
||||
bl SetGpuReg
|
||||
movs r0, 0x52
|
||||
movs r1, 0
|
||||
bl SetGpuReg
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_8110700
|
||||
|
||||
thumb_func_start sub_8110720
|
||||
sub_8110720: @ 8110720
|
||||
push {r4-r7,lr}
|
||||
sub sp, 0x4
|
||||
adds r7, r0, 0
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110740
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
b _08110762
|
||||
.pool
|
||||
_08110740:
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110762
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
ldrh r0, [r1, 0x2]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x2]
|
||||
ldrh r0, [r1, 0x6]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x6]
|
||||
_08110762:
|
||||
bl IsContest
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _081107B2
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
bl GetBattlerSide
|
||||
lsls r4, 24
|
||||
lsls r0, 24
|
||||
cmp r4, r0
|
||||
bne _081107B2
|
||||
ldrb r0, [r5]
|
||||
bl GetBattlerPosition
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081107A0
|
||||
ldrb r0, [r5]
|
||||
bl GetBattlerPosition
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
cmp r0, 0x1
|
||||
bne _081107B2
|
||||
_081107A0:
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r0, r2]
|
||||
negs r1, r1
|
||||
strh r1, [r0, 0x4]
|
||||
movs r2, 0
|
||||
ldrsh r1, [r0, r2]
|
||||
negs r1, r1
|
||||
strh r1, [r0]
|
||||
_081107B2:
|
||||
adds r0, r7, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
adds r4, r0, 0
|
||||
lsls r4, 24
|
||||
ldr r6, =gBattleAnimArgs
|
||||
lsrs r4, 24
|
||||
ldrh r0, [r6, 0x4]
|
||||
adds r4, r0
|
||||
lsls r4, 16
|
||||
lsrs r4, 16
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
adds r1, r0, 0
|
||||
lsls r1, 24
|
||||
lsrs r1, 24
|
||||
ldrh r2, [r6, 0x6]
|
||||
adds r1, r2
|
||||
lsls r1, 16
|
||||
ldrh r2, [r7, 0x20]
|
||||
lsls r0, r4, 16
|
||||
asrs r0, 16
|
||||
subs r0, r2
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
ldrh r2, [r7, 0x22]
|
||||
lsrs r5, r1, 16
|
||||
asrs r1, 16
|
||||
subs r1, r2
|
||||
lsls r1, 16
|
||||
asrs r1, 16
|
||||
bl ArcTan2Neg
|
||||
lsls r0, 16
|
||||
movs r1, 0xC0
|
||||
lsls r1, 24
|
||||
adds r0, r1
|
||||
lsrs r0, 16
|
||||
movs r3, 0x80
|
||||
lsls r3, 1
|
||||
str r0, [sp]
|
||||
adds r0, r7, 0
|
||||
movs r1, 0
|
||||
adds r2, r3, 0
|
||||
bl sub_80A73E0
|
||||
ldrh r0, [r6, 0x8]
|
||||
strh r0, [r7, 0x2E]
|
||||
strh r4, [r7, 0x32]
|
||||
strh r5, [r7, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r7, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r7, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
add sp, 0x4
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110720
|
||||
|
||||
thumb_func_start sub_8110850
|
||||
sub_8110850: @ 8110850
|
||||
push {r4-r6,lr}
|
||||
adds r6, r0, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08110870
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1, 0x4]
|
||||
negs r0, r0
|
||||
strh r0, [r1, 0x4]
|
||||
_08110870:
|
||||
ldr r4, =gBattleAnimArgs
|
||||
ldrh r0, [r4, 0x8]
|
||||
strh r0, [r6, 0x2E]
|
||||
ldr r5, =gBattleAnimTarget
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x4]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x32]
|
||||
ldrb r0, [r5]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r1, [r4, 0x6]
|
||||
adds r0, r1
|
||||
strh r0, [r6, 0x36]
|
||||
ldrh r0, [r4, 0xA]
|
||||
strh r0, [r6, 0x38]
|
||||
adds r0, r6, 0
|
||||
bl sub_80A68D4
|
||||
ldr r0, =sub_81108CC
|
||||
str r0, [r6, 0x1C]
|
||||
adds r2, r6, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x4
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110850
|
||||
|
||||
thumb_func_start sub_81108CC
|
||||
sub_81108CC: @ 81108CC
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
sub sp, 0x14
|
||||
adds r4, r0, 0
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x5
|
||||
negs r1, r1
|
||||
ands r1, r0
|
||||
strb r1, [r2]
|
||||
adds r0, r4, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081108F8
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
b _08110988
|
||||
_081108F8:
|
||||
movs r0, 0x2E
|
||||
adds r0, r4
|
||||
mov r8, r0
|
||||
ldrh r7, [r4, 0x20]
|
||||
ldrh r5, [r4, 0x24]
|
||||
ldrh r1, [r4, 0x22]
|
||||
mov r12, r1
|
||||
ldrh r6, [r4, 0x26]
|
||||
mov r2, r8
|
||||
add r1, sp, 0x4
|
||||
movs r3, 0x7
|
||||
_0811090E:
|
||||
ldrh r0, [r2]
|
||||
strh r0, [r1]
|
||||
adds r2, 0x2
|
||||
adds r1, 0x2
|
||||
subs r3, 0x1
|
||||
cmp r3, 0
|
||||
bge _0811090E
|
||||
adds r0, r7, r5
|
||||
lsls r0, 16
|
||||
lsrs r5, r0, 16
|
||||
mov r2, r12
|
||||
adds r0, r2, r6
|
||||
lsls r0, 16
|
||||
lsrs r6, r0, 16
|
||||
adds r0, r4, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
bne _08110988
|
||||
ldrh r0, [r4, 0x24]
|
||||
ldrh r1, [r4, 0x20]
|
||||
adds r0, r1
|
||||
lsls r1, r5, 16
|
||||
asrs r1, 16
|
||||
subs r0, r1
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
ldrh r1, [r4, 0x26]
|
||||
ldrh r2, [r4, 0x22]
|
||||
adds r1, r2
|
||||
lsls r2, r6, 16
|
||||
asrs r2, 16
|
||||
subs r1, r2
|
||||
lsls r1, 16
|
||||
asrs r1, 16
|
||||
bl ArcTan2Neg
|
||||
lsls r0, 16
|
||||
movs r1, 0xC0
|
||||
lsls r1, 24
|
||||
adds r0, r1
|
||||
lsrs r0, 16
|
||||
movs r3, 0x80
|
||||
lsls r3, 1
|
||||
str r0, [sp]
|
||||
adds r0, r4, 0
|
||||
movs r1, 0
|
||||
adds r2, r3, 0
|
||||
bl sub_80A73E0
|
||||
add r2, sp, 0x4
|
||||
mov r1, r8
|
||||
movs r3, 0x7
|
||||
_0811097A:
|
||||
ldrh r0, [r2]
|
||||
strh r0, [r1]
|
||||
adds r2, 0x2
|
||||
adds r1, 0x2
|
||||
subs r3, 0x1
|
||||
cmp r3, 0
|
||||
bge _0811097A
|
||||
_08110988:
|
||||
add sp, 0x14
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_81108CC
|
||||
|
||||
thumb_func_start sub_8110994
|
||||
sub_8110994: @ 8110994
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r1, 0
|
||||
ldrsh r0, [r0, r1]
|
||||
cmp r0, 0
|
||||
bne _081109B0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
b _081109B2
|
||||
.pool
|
||||
_081109B0:
|
||||
ldr r4, =gBattleAnimTarget
|
||||
_081109B2:
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
adds r0, 0x12
|
||||
strh r0, [r5, 0x22]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
ldr r0, =sub_80A67BC
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8110994
|
||||
|
||||
.align 2, 0
|
2199
asm/dark.s
Normal file
2199
asm/dark.s
Normal file
File diff suppressed because it is too large
Load Diff
793
asm/dragon.s
Normal file
793
asm/dragon.s
Normal file
@ -0,0 +1,793 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_8113064
|
||||
sub_8113064: @ 8113064
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x22]
|
||||
ldrb r0, [r4]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _081130B4
|
||||
ldr r2, =gBattleAnimArgs
|
||||
ldrh r0, [r5, 0x20]
|
||||
ldrh r1, [r2]
|
||||
subs r0, r1
|
||||
strh r0, [r5, 0x20]
|
||||
ldrh r0, [r2, 0x6]
|
||||
negs r0, r0
|
||||
strh r0, [r2, 0x6]
|
||||
ldrh r0, [r2, 0x8]
|
||||
negs r0, r0
|
||||
strh r0, [r2, 0x8]
|
||||
adds r1, r2, 0
|
||||
b _081130BE
|
||||
.pool
|
||||
_081130B4:
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
ldrh r2, [r5, 0x20]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x20]
|
||||
_081130BE:
|
||||
ldrh r0, [r1, 0x2]
|
||||
ldrh r2, [r5, 0x22]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x22]
|
||||
ldrh r0, [r1, 0x4]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldrh r0, [r1, 0x6]
|
||||
strh r0, [r5, 0x30]
|
||||
ldrh r0, [r1, 0x8]
|
||||
strh r0, [r5, 0x34]
|
||||
ldrh r0, [r1, 0xA]
|
||||
strh r0, [r5, 0x38]
|
||||
adds r2, r5, 0
|
||||
adds r2, 0x3E
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x4
|
||||
orrs r0, r1
|
||||
strb r0, [r2]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
ldr r0, =sub_80A66DC
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113064
|
||||
|
||||
thumb_func_start sub_8113100
|
||||
sub_8113100: @ 8113100
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
bl sub_80A6838
|
||||
ldr r4, =gBattleAnimTarget
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x32]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x36]
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _08113164
|
||||
ldr r2, =gBattleAnimArgs
|
||||
ldrh r0, [r5, 0x20]
|
||||
ldrh r1, [r2, 0x2]
|
||||
subs r0, r1
|
||||
strh r0, [r5, 0x20]
|
||||
ldrh r0, [r5, 0x22]
|
||||
adds r1, r0
|
||||
strh r1, [r5, 0x22]
|
||||
ldrh r0, [r5, 0x32]
|
||||
ldrh r1, [r2, 0x4]
|
||||
subs r0, r1
|
||||
strh r0, [r5, 0x32]
|
||||
ldrh r0, [r2, 0x6]
|
||||
ldrh r1, [r5, 0x36]
|
||||
adds r0, r1
|
||||
strh r0, [r5, 0x36]
|
||||
b _0811318E
|
||||
.pool
|
||||
_08113164:
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
ldrh r2, [r5, 0x20]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x20]
|
||||
ldrh r0, [r1, 0x2]
|
||||
ldrh r2, [r5, 0x22]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x22]
|
||||
ldrh r0, [r1, 0x4]
|
||||
ldrh r2, [r5, 0x32]
|
||||
adds r0, r2
|
||||
strh r0, [r5, 0x32]
|
||||
ldrh r0, [r1, 0x6]
|
||||
ldrh r1, [r5, 0x36]
|
||||
adds r0, r1
|
||||
strh r0, [r5, 0x36]
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x1
|
||||
bl StartSpriteAnim
|
||||
_0811318E:
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r0, [r0, 0x8]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r5, 0x1C]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113100
|
||||
|
||||
thumb_func_start sub_81131B4
|
||||
sub_81131B4: @ 81131B4
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r0, =gBattleAnimArgs
|
||||
movs r1, 0
|
||||
ldrsh r0, [r0, r1]
|
||||
cmp r0, 0
|
||||
bne _081131D0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
b _081131D2
|
||||
.pool
|
||||
_081131D0:
|
||||
ldr r4, =gBattleAnimTarget
|
||||
_081131D2:
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x1
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x22]
|
||||
ldr r4, =gBattleAnimArgs
|
||||
movs r0, 0x2
|
||||
ldrsh r1, [r4, r0]
|
||||
adds r0, r5, 0
|
||||
bl sub_80A6864
|
||||
ldrh r0, [r4, 0x4]
|
||||
ldrh r1, [r5, 0x22]
|
||||
adds r0, r1
|
||||
strh r0, [r5, 0x22]
|
||||
ldr r0, =sub_80A67D8
|
||||
str r0, [r5, 0x1C]
|
||||
ldr r1, =move_anim_8074EE0
|
||||
adds r0, r5, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81131B4
|
||||
|
||||
thumb_func_start sub_8113224
|
||||
sub_8113224: @ 8113224
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0811323E
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x1
|
||||
bl StartSpriteAffineAnim
|
||||
_0811323E:
|
||||
adds r0, r4, 0
|
||||
bl sub_8113100
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113224
|
||||
|
||||
thumb_func_start sub_8113250
|
||||
sub_8113250: @ 8113250
|
||||
push {r4-r7,lr}
|
||||
adds r6, r0, 0
|
||||
ldr r4, =gBattleAnimAttacker
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
movs r5, 0
|
||||
strh r0, [r6, 0x20]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r6, 0x22]
|
||||
strh r5, [r6, 0x36]
|
||||
movs r0, 0x1
|
||||
strh r0, [r6, 0x38]
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r0, [r0]
|
||||
strh r0, [r6, 0x3A]
|
||||
ldr r4, =gBattlerAttacker
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0
|
||||
bl sub_80A861C
|
||||
lsls r7, r0, 16
|
||||
lsrs r5, r7, 16
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x1
|
||||
bl sub_80A861C
|
||||
lsls r1, r0, 16
|
||||
lsrs r0, r1, 16
|
||||
cmp r5, r0
|
||||
bls _081132B0
|
||||
lsrs r0, r7, 17
|
||||
b _081132B2
|
||||
.pool
|
||||
_081132B0:
|
||||
lsrs r0, r1, 17
|
||||
_081132B2:
|
||||
strh r0, [r6, 0x3C]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r6, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r6, r2]
|
||||
bl Cos
|
||||
strh r0, [r6, 0x24]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r6, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r6, r2]
|
||||
bl Sin
|
||||
strh r0, [r6, 0x26]
|
||||
ldr r0, =sub_81132E0
|
||||
str r0, [r6, 0x1C]
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113250
|
||||
|
||||
thumb_func_start sub_81132E0
|
||||
sub_81132E0: @ 81132E0
|
||||
push {r4,r5,lr}
|
||||
adds r4, r0, 0
|
||||
movs r0, 0x2E
|
||||
ldrsh r5, [r4, r0]
|
||||
cmp r5, 0
|
||||
beq _081132F2
|
||||
cmp r5, 0x1
|
||||
beq _0811335E
|
||||
b _081133E2
|
||||
_081132F2:
|
||||
ldrh r0, [r4, 0x3A]
|
||||
ldrh r1, [r4, 0x38]
|
||||
subs r0, r1
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r4, 0x3A]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Cos
|
||||
strh r0, [r4, 0x24]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Sin
|
||||
strh r0, [r4, 0x26]
|
||||
ldrh r0, [r4, 0x36]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x36]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x5
|
||||
ble _08113344
|
||||
strh r5, [r4, 0x36]
|
||||
ldrh r1, [r4, 0x38]
|
||||
movs r2, 0x38
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0xF
|
||||
bgt _08113344
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x38]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0xF
|
||||
ble _08113344
|
||||
movs r0, 0x10
|
||||
strh r0, [r4, 0x38]
|
||||
_08113344:
|
||||
ldrh r0, [r4, 0x34]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x34]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3C
|
||||
ble _081133E2
|
||||
movs r0, 0
|
||||
strh r0, [r4, 0x34]
|
||||
ldrh r0, [r4, 0x2E]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x2E]
|
||||
b _081133E2
|
||||
_0811335E:
|
||||
ldrh r0, [r4, 0x3A]
|
||||
ldrh r1, [r4, 0x38]
|
||||
subs r0, r1
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r4, 0x3A]
|
||||
ldrh r1, [r4, 0x3C]
|
||||
movs r2, 0x3C
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0x95
|
||||
bgt _08113386
|
||||
adds r0, r1, 0
|
||||
adds r0, 0x8
|
||||
strh r0, [r4, 0x3C]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x95
|
||||
ble _08113386
|
||||
movs r0, 0x96
|
||||
strh r0, [r4, 0x3C]
|
||||
_08113386:
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Cos
|
||||
strh r0, [r4, 0x24]
|
||||
movs r1, 0x3A
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x3C
|
||||
ldrsh r1, [r4, r2]
|
||||
bl Sin
|
||||
strh r0, [r4, 0x26]
|
||||
ldrh r0, [r4, 0x36]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x36]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x5
|
||||
ble _081133CE
|
||||
movs r0, 0
|
||||
strh r0, [r4, 0x36]
|
||||
ldrh r1, [r4, 0x38]
|
||||
movs r2, 0x38
|
||||
ldrsh r0, [r4, r2]
|
||||
cmp r0, 0xF
|
||||
bgt _081133CE
|
||||
adds r0, r1, 0x1
|
||||
strh r0, [r4, 0x38]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0xF
|
||||
ble _081133CE
|
||||
movs r0, 0x10
|
||||
strh r0, [r4, 0x38]
|
||||
_081133CE:
|
||||
ldrh r0, [r4, 0x34]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x34]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x14
|
||||
ble _081133E2
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_081133E2:
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_81132E0
|
||||
|
||||
thumb_func_start sub_81133E8
|
||||
sub_81133E8: @ 81133E8
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0xC
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
lsls r1, r0, 2
|
||||
adds r1, r0
|
||||
lsls r1, 3
|
||||
ldr r0, =gTasks
|
||||
adds r4, r1, r0
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl sub_80A8364
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
cmp r0, 0x1
|
||||
bne _08113424
|
||||
ldr r0, =0x04000014
|
||||
str r0, [sp]
|
||||
ldr r0, =gBattle_BG1_X
|
||||
b _0811342A
|
||||
.pool
|
||||
_08113424:
|
||||
ldr r0, =0x04000018
|
||||
str r0, [sp]
|
||||
ldr r0, =gBattle_BG2_X
|
||||
_0811342A:
|
||||
ldrh r0, [r0]
|
||||
strh r0, [r4, 0xC]
|
||||
ldr r0, =0xa2600001
|
||||
str r0, [sp, 0x4]
|
||||
mov r1, sp
|
||||
movs r5, 0
|
||||
movs r0, 0x1
|
||||
strb r0, [r1, 0x8]
|
||||
mov r0, sp
|
||||
strb r5, [r0, 0x9]
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerYCoordWithElevation
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
adds r1, r0, 0
|
||||
subs r1, 0x20
|
||||
strh r1, [r4, 0xE]
|
||||
adds r0, 0x20
|
||||
strh r0, [r4, 0x10]
|
||||
cmp r1, 0
|
||||
bge _0811345A
|
||||
strh r5, [r4, 0xE]
|
||||
_0811345A:
|
||||
ldrh r3, [r4, 0xE]
|
||||
movs r1, 0x10
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r3, r0
|
||||
bgt _08113488
|
||||
ldr r5, =gScanlineEffectRegBuffers
|
||||
movs r0, 0xF0
|
||||
lsls r0, 3
|
||||
adds r6, r5, r0
|
||||
_0811346C:
|
||||
lsls r1, r3, 1
|
||||
adds r2, r1, r5
|
||||
ldrh r0, [r4, 0xC]
|
||||
strh r0, [r2]
|
||||
adds r1, r6
|
||||
ldrh r0, [r4, 0xC]
|
||||
strh r0, [r1]
|
||||
adds r0, r3, 0x1
|
||||
lsls r0, 16
|
||||
lsrs r3, r0, 16
|
||||
movs r1, 0x10
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r3, r0
|
||||
ble _0811346C
|
||||
_08113488:
|
||||
ldr r0, [sp]
|
||||
ldr r1, [sp, 0x4]
|
||||
ldr r2, [sp, 0x8]
|
||||
bl ScanlineEffect_SetParams
|
||||
ldr r0, =sub_81134B8
|
||||
str r0, [r4]
|
||||
add sp, 0xC
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81133E8
|
||||
|
||||
thumb_func_start sub_81134B8
|
||||
sub_81134B8: @ 81134B8
|
||||
push {lr}
|
||||
lsls r0, 24
|
||||
lsrs r3, r0, 24
|
||||
lsls r0, r3, 2
|
||||
adds r0, r3
|
||||
lsls r0, 3
|
||||
ldr r1, =gTasks
|
||||
adds r2, r0, r1
|
||||
movs r1, 0x8
|
||||
ldrsh r0, [r2, r1]
|
||||
cmp r0, 0x4
|
||||
bhi _0811356E
|
||||
lsls r0, 2
|
||||
ldr r1, =_081134E4
|
||||
adds r0, r1
|
||||
ldr r0, [r0]
|
||||
mov pc, r0
|
||||
.pool
|
||||
.align 2, 0
|
||||
_081134E4:
|
||||
.4byte _081134F8
|
||||
.4byte _0811351A
|
||||
.4byte _0811352A
|
||||
.4byte _08113556
|
||||
.4byte _08113568
|
||||
_081134F8:
|
||||
ldrh r0, [r2, 0x16]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x16]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x1
|
||||
ble _0811354E
|
||||
movs r0, 0
|
||||
strh r0, [r2, 0x16]
|
||||
ldrh r0, [r2, 0x14]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x14]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3
|
||||
bne _0811354E
|
||||
b _08113548
|
||||
_0811351A:
|
||||
ldrh r0, [r2, 0xA]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0xA]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x3C
|
||||
ble _0811354E
|
||||
b _08113548
|
||||
_0811352A:
|
||||
ldrh r0, [r2, 0x16]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x16]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
cmp r0, 0x1
|
||||
ble _0811354E
|
||||
movs r0, 0
|
||||
strh r0, [r2, 0x16]
|
||||
ldrh r0, [r2, 0x14]
|
||||
subs r0, 0x1
|
||||
strh r0, [r2, 0x14]
|
||||
lsls r0, 16
|
||||
cmp r0, 0
|
||||
bne _0811354E
|
||||
_08113548:
|
||||
ldrh r0, [r2, 0x8]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x8]
|
||||
_0811354E:
|
||||
adds r0, r2, 0
|
||||
bl sub_8113574
|
||||
b _0811356E
|
||||
_08113556:
|
||||
ldr r1, =gScanlineEffect
|
||||
movs r0, 0x3
|
||||
strb r0, [r1, 0x15]
|
||||
ldrh r0, [r2, 0x8]
|
||||
adds r0, 0x1
|
||||
strh r0, [r2, 0x8]
|
||||
b _0811356E
|
||||
.pool
|
||||
_08113568:
|
||||
adds r0, r3, 0
|
||||
bl DestroyAnimVisualTask
|
||||
_0811356E:
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_81134B8
|
||||
|
||||
thumb_func_start sub_8113574
|
||||
sub_8113574: @ 8113574
|
||||
push {r4-r7,lr}
|
||||
mov r7, r8
|
||||
push {r7}
|
||||
adds r5, r0, 0
|
||||
ldrh r3, [r5, 0x12]
|
||||
ldrh r4, [r5, 0xE]
|
||||
movs r1, 0x10
|
||||
ldrsh r0, [r5, r1]
|
||||
cmp r4, r0
|
||||
bgt _081135CA
|
||||
ldr r7, =gScanlineEffectRegBuffers
|
||||
mov r12, r7
|
||||
ldr r0, =gSineTable
|
||||
mov r8, r0
|
||||
ldr r6, =gScanlineEffect
|
||||
_08113592:
|
||||
lsls r2, r4, 1
|
||||
ldrb r1, [r6, 0x14]
|
||||
lsls r0, r1, 4
|
||||
subs r0, r1
|
||||
lsls r0, 7
|
||||
adds r2, r0
|
||||
add r2, r12
|
||||
lsls r0, r3, 1
|
||||
add r0, r8
|
||||
movs r7, 0
|
||||
ldrsh r1, [r0, r7]
|
||||
movs r7, 0x14
|
||||
ldrsh r0, [r5, r7]
|
||||
muls r0, r1
|
||||
asrs r0, 7
|
||||
ldrh r1, [r5, 0xC]
|
||||
adds r0, r1
|
||||
strh r0, [r2]
|
||||
adds r3, 0x8
|
||||
movs r0, 0xFF
|
||||
ands r3, r0
|
||||
adds r0, r4, 0x1
|
||||
lsls r0, 16
|
||||
lsrs r4, r0, 16
|
||||
movs r7, 0x10
|
||||
ldrsh r0, [r5, r7]
|
||||
cmp r4, r0
|
||||
ble _08113592
|
||||
_081135CA:
|
||||
ldrh r0, [r5, 0x12]
|
||||
adds r0, 0x9
|
||||
movs r1, 0xFF
|
||||
ands r0, r1
|
||||
strh r0, [r5, 0x12]
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r7}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_8113574
|
||||
|
||||
thumb_func_start sub_81135EC
|
||||
sub_81135EC: @ 81135EC
|
||||
push {r4-r6,lr}
|
||||
mov r6, r8
|
||||
push {r6}
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
movs r0, 0x4
|
||||
ldrsh r1, [r5, r0]
|
||||
lsls r0, r1, 1
|
||||
adds r0, r1
|
||||
movs r1, 0x5
|
||||
bl __divsi3
|
||||
adds r6, r0, 0
|
||||
ldr r1, =gBattleAnimAttacker
|
||||
mov r8, r1
|
||||
ldrb r0, [r1]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r4, 0x20]
|
||||
mov r2, r8
|
||||
ldrb r0, [r2]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
ldrh r3, [r5, 0x8]
|
||||
adds r0, r3
|
||||
strh r0, [r4, 0x22]
|
||||
movs r1, 0x2
|
||||
ldrsh r0, [r5, r1]
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r5, r2]
|
||||
bl Cos
|
||||
strh r0, [r4, 0x30]
|
||||
movs r3, 0x2
|
||||
ldrsh r0, [r5, r3]
|
||||
lsls r6, 16
|
||||
asrs r6, 16
|
||||
adds r1, r6, 0
|
||||
bl Sin
|
||||
strh r0, [r4, 0x32]
|
||||
ldrh r1, [r4, 0x30]
|
||||
ldrh r2, [r5]
|
||||
adds r3, r2, 0
|
||||
muls r3, r1
|
||||
adds r1, r3, 0
|
||||
ldrh r3, [r4, 0x20]
|
||||
adds r1, r3
|
||||
strh r1, [r4, 0x20]
|
||||
adds r1, r2, 0
|
||||
muls r1, r0
|
||||
adds r0, r1, 0
|
||||
ldrh r2, [r4, 0x22]
|
||||
adds r0, r2
|
||||
strh r0, [r4, 0x22]
|
||||
ldrh r0, [r5, 0x6]
|
||||
strh r0, [r4, 0x34]
|
||||
ldr r0, =sub_811369C
|
||||
str r0, [r4, 0x1C]
|
||||
adds r4, 0x2E
|
||||
ldr r2, =gUnknown_0203A100
|
||||
movs r1, 0x6
|
||||
_08113674:
|
||||
ldrh r0, [r4]
|
||||
strh r0, [r2]
|
||||
adds r4, 0x2
|
||||
adds r2, 0x2
|
||||
subs r1, 0x1
|
||||
cmp r1, 0
|
||||
bge _08113674
|
||||
pop {r3}
|
||||
mov r8, r3
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_81135EC
|
||||
|
||||
thumb_func_start sub_811369C
|
||||
sub_811369C: @ 811369C
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldrh r0, [r4, 0x30]
|
||||
ldrh r1, [r4, 0x36]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x36]
|
||||
ldrh r0, [r4, 0x32]
|
||||
ldrh r2, [r4, 0x38]
|
||||
adds r0, r2
|
||||
strh r0, [r4, 0x38]
|
||||
movs r1, 0x36
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r1, 0xA
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x24]
|
||||
movs r2, 0x38
|
||||
ldrsh r0, [r4, r2]
|
||||
movs r1, 0xA
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x26]
|
||||
ldrh r0, [r4, 0x2E]
|
||||
adds r0, 0x1
|
||||
strh r0, [r4, 0x2E]
|
||||
lsls r0, 16
|
||||
asrs r0, 16
|
||||
movs r2, 0x34
|
||||
ldrsh r1, [r4, r2]
|
||||
cmp r0, r1
|
||||
ble _081136E0
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_081136E0:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_811369C
|
||||
|
||||
.align 2, 0
|
2547
asm/electric.s
Normal file
2547
asm/electric.s
Normal file
File diff suppressed because it is too large
Load Diff
1649
asm/fight.s
Normal file
1649
asm/fight.s
Normal file
File diff suppressed because it is too large
Load Diff
2397
asm/fire.s
Normal file
2397
asm/fire.s
Normal file
File diff suppressed because it is too large
Load Diff
2551
asm/flying.s
Normal file
2551
asm/flying.s
Normal file
File diff suppressed because it is too large
Load Diff
3251
asm/ghost.s
Normal file
3251
asm/ghost.s
Normal file
File diff suppressed because it is too large
Load Diff
1675
asm/ground.s
Normal file
1675
asm/ground.s
Normal file
File diff suppressed because it is too large
Load Diff
1876
asm/normal.s
Normal file
1876
asm/normal.s
Normal file
File diff suppressed because it is too large
Load Diff
306
asm/poison.s
Normal file
306
asm/poison.s
Normal file
@ -0,0 +1,306 @@
|
||||
.include "asm/macros.inc"
|
||||
.include "constants/constants.inc"
|
||||
|
||||
.syntax unified
|
||||
|
||||
.text
|
||||
|
||||
thumb_func_start sub_810DBAC
|
||||
sub_810DBAC: @ 810DBAC
|
||||
push {r4,r5,lr}
|
||||
adds r5, r0, 0
|
||||
ldr r4, =gBattleAnimArgs
|
||||
movs r1, 0x6
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DBC2
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAnim
|
||||
_0810DBC2:
|
||||
adds r0, r5, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldrh r0, [r4, 0x4]
|
||||
strh r0, [r5, 0x2E]
|
||||
ldr r4, =gBattleAnimTarget
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x2
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x32]
|
||||
ldrb r0, [r4]
|
||||
movs r1, 0x3
|
||||
bl GetBattlerSpriteCoord
|
||||
lsls r0, 24
|
||||
lsrs r0, 24
|
||||
strh r0, [r5, 0x36]
|
||||
ldr r0, =0x0000ffe2
|
||||
strh r0, [r5, 0x38]
|
||||
adds r0, r5, 0
|
||||
bl sub_80A68D4
|
||||
ldr r0, =sub_810DC10
|
||||
str r0, [r5, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DBAC
|
||||
|
||||
thumb_func_start sub_810DC10
|
||||
sub_810DC10: @ 810DC10
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DC24
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_0810DC24:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_810DC10
|
||||
|
||||
thumb_func_start sub_810DC2C
|
||||
sub_810DC2C: @ 810DC2C
|
||||
push {r4-r6,lr}
|
||||
sub sp, 0x4
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
movs r1, 0x6
|
||||
ldrsh r0, [r5, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DC44
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x2
|
||||
bl StartSpriteAnim
|
||||
_0810DC44:
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A69CC
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
mov r6, sp
|
||||
adds r6, 0x2
|
||||
movs r1, 0x1
|
||||
mov r2, sp
|
||||
adds r3, r6, 0
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DC72
|
||||
ldrh r0, [r5, 0x8]
|
||||
negs r0, r0
|
||||
strh r0, [r5, 0x8]
|
||||
_0810DC72:
|
||||
ldrh r0, [r5, 0x4]
|
||||
strh r0, [r4, 0x2E]
|
||||
mov r1, sp
|
||||
ldrh r0, [r5, 0x8]
|
||||
ldrh r1, [r1]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x32]
|
||||
ldrh r0, [r5, 0xA]
|
||||
ldrh r6, [r6]
|
||||
adds r0, r6
|
||||
strh r0, [r4, 0x36]
|
||||
ldr r0, =0x0000ffe2
|
||||
strh r0, [r4, 0x38]
|
||||
adds r0, r4, 0
|
||||
bl sub_80A68D4
|
||||
ldr r0, =sub_810DCB4
|
||||
str r0, [r4, 0x1C]
|
||||
add sp, 0x4
|
||||
pop {r4-r6}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DC2C
|
||||
|
||||
thumb_func_start sub_810DCB4
|
||||
sub_810DCB4: @ 810DCB4
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl TranslateAnimArc
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DCC8
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_0810DCC8:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_810DCB4
|
||||
|
||||
thumb_func_start sub_810DCD0
|
||||
sub_810DCD0: @ 810DCD0
|
||||
push {r4,r5,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
ldrh r0, [r5, 0x4]
|
||||
strh r0, [r4, 0x2E]
|
||||
ldrh r0, [r4, 0x20]
|
||||
strh r0, [r4, 0x30]
|
||||
ldrh r1, [r5]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x32]
|
||||
ldrh r0, [r4, 0x22]
|
||||
strh r0, [r4, 0x34]
|
||||
ldrh r1, [r5, 0x2]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x36]
|
||||
adds r0, r4, 0
|
||||
bl sub_80A6E14
|
||||
movs r1, 0x30
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r5, r2]
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x38]
|
||||
movs r1, 0x32
|
||||
ldrsh r0, [r4, r1]
|
||||
movs r2, 0x4
|
||||
ldrsh r1, [r5, r2]
|
||||
bl __divsi3
|
||||
strh r0, [r4, 0x3A]
|
||||
ldr r0, =sub_810DD24
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DCD0
|
||||
|
||||
thumb_func_start sub_810DD24
|
||||
sub_810DD24: @ 810DD24
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
bl sub_80A656C
|
||||
ldrh r0, [r4, 0x30]
|
||||
ldrh r1, [r4, 0x38]
|
||||
subs r0, r1
|
||||
strh r0, [r4, 0x30]
|
||||
ldrh r0, [r4, 0x32]
|
||||
ldrh r1, [r4, 0x3A]
|
||||
subs r0, r1
|
||||
strh r0, [r4, 0x32]
|
||||
movs r1, 0x2E
|
||||
ldrsh r0, [r4, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DD4A
|
||||
adds r0, r4, 0
|
||||
bl DestroyAnimSprite
|
||||
_0810DD4A:
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
thumb_func_end sub_810DD24
|
||||
|
||||
thumb_func_start sub_810DD50
|
||||
sub_810DD50: @ 810DD50
|
||||
push {r4,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x20
|
||||
adds r3, r4, 0
|
||||
adds r3, 0x22
|
||||
movs r1, 0x1
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DD7C
|
||||
ldr r1, =gBattleAnimArgs
|
||||
ldrh r0, [r1]
|
||||
negs r0, r0
|
||||
strh r0, [r1]
|
||||
_0810DD7C:
|
||||
ldr r0, =gBattleAnimArgs
|
||||
ldrh r2, [r0]
|
||||
ldrh r1, [r4, 0x20]
|
||||
adds r2, r1
|
||||
strh r2, [r4, 0x20]
|
||||
ldrh r1, [r0, 0x2]
|
||||
ldrh r3, [r4, 0x22]
|
||||
adds r1, r3
|
||||
strh r1, [r4, 0x22]
|
||||
ldrh r3, [r0, 0x8]
|
||||
strh r3, [r4, 0x2E]
|
||||
ldrh r0, [r0, 0x4]
|
||||
adds r2, r0
|
||||
strh r2, [r4, 0x32]
|
||||
adds r1, r3
|
||||
strh r1, [r4, 0x36]
|
||||
ldr r0, =sub_80A6EEC
|
||||
str r0, [r4, 0x1C]
|
||||
ldr r1, =DestroyAnimSprite
|
||||
adds r0, r4, 0
|
||||
bl StoreSpriteCallbackInData6
|
||||
pop {r4}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DD50
|
||||
|
||||
thumb_func_start sub_810DDC4
|
||||
sub_810DDC4: @ 810DDC4
|
||||
push {r4,r5,lr}
|
||||
adds r4, r0, 0
|
||||
ldr r5, =gBattleAnimArgs
|
||||
movs r1, 0x4
|
||||
ldrsh r0, [r5, r1]
|
||||
cmp r0, 0
|
||||
bne _0810DDE0
|
||||
adds r0, r4, 0
|
||||
movs r1, 0x1
|
||||
bl sub_80A6980
|
||||
b _0810DE16
|
||||
.pool
|
||||
_0810DDE0:
|
||||
ldr r0, =gBattleAnimTarget
|
||||
ldrb r0, [r0]
|
||||
adds r2, r4, 0
|
||||
adds r2, 0x20
|
||||
adds r3, r4, 0
|
||||
adds r3, 0x22
|
||||
movs r1, 0x1
|
||||
bl SetAverageBattlerPositions
|
||||
ldr r0, =gBattleAnimAttacker
|
||||
ldrb r0, [r0]
|
||||
bl GetBattlerSide
|
||||
lsls r0, 24
|
||||
cmp r0, 0
|
||||
beq _0810DE06
|
||||
ldrh r0, [r5]
|
||||
negs r0, r0
|
||||
strh r0, [r5]
|
||||
_0810DE06:
|
||||
ldrh r0, [r5]
|
||||
ldrh r1, [r4, 0x20]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x20]
|
||||
ldrh r0, [r5, 0x2]
|
||||
ldrh r1, [r4, 0x22]
|
||||
adds r0, r1
|
||||
strh r0, [r4, 0x22]
|
||||
_0810DE16:
|
||||
ldr r0, =sub_810DE2C
|
||||
str r0, [r4, 0x1C]
|
||||
pop {r4,r5}
|
||||
pop {r0}
|
||||
bx r0
|
||||
.pool
|
||||
thumb_func_end sub_810DDC4
|
||||
|
||||
.align 2, 0
|
2172
asm/psychic.s
Normal file
2172
asm/psychic.s
Normal file
File diff suppressed because it is too large
Load Diff
1469
asm/rock.s
Normal file
1469
asm/rock.s
Normal file
File diff suppressed because it is too large
Load Diff
3607
asm/water.s
Normal file
3607
asm/water.s
Normal file
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,6 +1,7 @@
|
||||
#ifndef GUARD_BATTLE_ANIM_H
|
||||
#define GUARD_BATTLE_ANIM_H
|
||||
|
||||
#include "battle.h"
|
||||
#include "constants/battle_anim.h"
|
||||
|
||||
enum
|
||||
@ -128,4 +129,49 @@ u8 LaunchBallFadeMonTask(bool8 unFadeLater, u8 battlerId, u32 arg2, u8 ballId);
|
||||
|
||||
u8 GetBattlerSpriteFinal_Y(u8, u16, u8);
|
||||
|
||||
extern const struct OamData gUnknown_08524944;
|
||||
extern const struct OamData gUnknown_08524A8C;
|
||||
extern const struct OamData gUnknown_08524904;
|
||||
extern const struct OamData gUnknown_085249C4;
|
||||
extern const struct OamData gUnknown_0852490C;
|
||||
extern const struct OamData gUnknown_08524934;
|
||||
extern const struct OamData gUnknown_08524974;
|
||||
extern const struct OamData gUnknown_0852499C;
|
||||
extern const struct OamData gUnknown_085249CC;
|
||||
extern const struct OamData gUnknown_08524914;
|
||||
extern const struct OamData gUnknown_0852496C;
|
||||
extern const struct OamData gUnknown_08524A34;
|
||||
extern const struct OamData gUnknown_08524A3C;
|
||||
extern const struct OamData gUnknown_08524A94;
|
||||
extern const struct OamData gUnknown_08524954;
|
||||
extern const struct OamData gUnknown_08524AE4;
|
||||
extern const struct OamData gUnknown_085249D4;
|
||||
extern const struct OamData gUnknown_08524A9C;
|
||||
extern const struct OamData gUnknown_08524ADC;
|
||||
extern const struct OamData gUnknown_08524B14;
|
||||
extern const struct OamData gUnknown_08524A54;
|
||||
extern const struct OamData gUnknown_08524A14;
|
||||
extern const struct OamData gUnknown_08524A1C;
|
||||
extern const struct OamData gUnknown_085249BC;
|
||||
extern const struct OamData gUnknown_08524AF4;
|
||||
extern const struct OamData gUnknown_085249DC;
|
||||
extern const struct OamData gUnknown_08524AFC;
|
||||
extern const struct OamData gUnknown_08524B1C;
|
||||
extern const struct OamData gUnknown_08524A04;
|
||||
extern const struct OamData gUnknown_08524A2C;
|
||||
extern const struct OamData gUnknown_08524AEC;
|
||||
extern const struct OamData gUnknown_08524964;
|
||||
extern const struct OamData gUnknown_08524B24;
|
||||
extern const struct OamData gUnknown_08524A24;
|
||||
extern const struct OamData gUnknown_08524AC4;
|
||||
extern const struct OamData gUnknown_08524A84;
|
||||
extern const struct OamData gUnknown_08524A64;
|
||||
extern const struct OamData gUnknown_0852491C;
|
||||
extern const struct OamData gUnknown_0852495C;
|
||||
extern const struct OamData gUnknown_0852497C;
|
||||
extern const struct OamData gUnknown_085249F4;
|
||||
extern const struct OamData gUnknown_0852493C;
|
||||
extern const struct OamData gUnknown_08524A5C;
|
||||
extern const struct OamData gUnknown_08524A74;
|
||||
|
||||
#endif // GUARD_BATTLE_ANIM_H
|
||||
|
@ -103,12 +103,19 @@ struct AffineAnimJumpCmd
|
||||
u16 target;
|
||||
};
|
||||
|
||||
struct AffineAnimEndCmdAlt
|
||||
{
|
||||
s16 type;
|
||||
u16 val;
|
||||
};
|
||||
|
||||
union AffineAnimCmd
|
||||
{
|
||||
s16 type;
|
||||
struct AffineAnimFrameCmd frame;
|
||||
struct AffineAnimLoopCmd loop;
|
||||
struct AffineAnimJumpCmd jump;
|
||||
struct AffineAnimEndCmdAlt end; // unused in code
|
||||
};
|
||||
|
||||
#define AFFINEANIMCMDTYPE_LOOP 0x7FFD
|
||||
@ -123,6 +130,8 @@ union AffineAnimCmd
|
||||
{.jump = {.type = AFFINEANIMCMDTYPE_JUMP, .target = _target}}
|
||||
#define AFFINEANIMCMD_END \
|
||||
{.type = AFFINEANIMCMDTYPE_END}
|
||||
#define AFFINEANIMCMD_END_ALT(_val) \
|
||||
{.end = {.type = AFFINEANIMCMDTYPE_END, .val = _val}}
|
||||
|
||||
struct AffineAnimState
|
||||
{
|
||||
|
@ -156,7 +156,25 @@ SECTIONS {
|
||||
src/safari_zone.o(.text);
|
||||
asm/contest_link_80FC4F4.o(.text);
|
||||
src/item_use.o(.text);
|
||||
asm/battle_anim_80FE840.o(.text);
|
||||
asm/battle_anim_effects_1.o(.text);
|
||||
asm/battle_anim_effects_2.o(.text);
|
||||
asm/water.o(.text);
|
||||
asm/fire.o(.text);
|
||||
asm/electric.o(.text);
|
||||
asm/ice.o(.text);
|
||||
asm/fight.o(.text);
|
||||
asm/poison.o(.text);
|
||||
asm/flying.o(.text);
|
||||
asm/psychic.o(.text);
|
||||
asm/bug.o(.text);
|
||||
asm/rock.o(.text);
|
||||
asm/ghost.o(.text);
|
||||
asm/dragon.o(.text);
|
||||
asm/dark.o(.text);
|
||||
asm/ground.o(.text);
|
||||
asm/normal.o(.text);
|
||||
asm/battle_anim_utility_funcs.o(.text);
|
||||
asm/battle_intro.o(.text);
|
||||
src/bike.o(.text);
|
||||
src/easy_chat.o(.text);
|
||||
asm/easy_chat.o(.text);
|
||||
@ -457,7 +475,25 @@ SECTIONS {
|
||||
src/field_special_scene.o(.rodata);
|
||||
src/rotating_gate.o(.rodata);
|
||||
src/item_use.o(.rodata);
|
||||
data/battle_anim_80FE840.o(.rodata);
|
||||
src/effects_1.o(.rodata);
|
||||
src/effects_2.o(.rodata);
|
||||
src/water.o(.rodata);
|
||||
src/fire.o(.rodata);
|
||||
src/electric.o(.rodata);
|
||||
src/ice.o(.rodata);
|
||||
src/fight.o(.rodata);
|
||||
src/poison.o(.rodata);
|
||||
src/flying.o(.rodata);
|
||||
src/psychic.o(.rodata);
|
||||
src/bug.o(.rodata);
|
||||
src/rock.o(.rodata);
|
||||
src/ghost.o(.rodata);
|
||||
src/dragon.o(.rodata);
|
||||
src/dark.o(.rodata);
|
||||
src/ground.o(.rodata);
|
||||
src/normal.o(.rodata);
|
||||
src/battle_anim_utility_funcs.o(.rodata);
|
||||
src/battle_intro.o(.rodata);
|
||||
src/bike.o(.rodata);
|
||||
data/easy_chat.o(.rodata);
|
||||
src/mon_markings.o(.rodata);
|
||||
|
10
src/battle_anim_utility_funcs.c
Normal file
10
src/battle_anim_utility_funcs.c
Normal file
@ -0,0 +1,10 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
const u16 gUnknown_08597418 = RGB(31, 31, 31);
|
||||
|
||||
// no clue what these are...
|
||||
// possibly some register offsets
|
||||
const u8 gUnknown_0859741A[] = {0x08, 0x0a, 0x0c, 0x0e};
|
||||
const u8 gUnknown_0859741E[] = {0x08, 0x0a, 0x0c, 0x0e};
|
21
src/battle_intro.c
Normal file
21
src/battle_intro.c
Normal file
@ -0,0 +1,21 @@
|
||||
#include "global.h"
|
||||
#include "task.h"
|
||||
|
||||
extern void task_battle_intro_80BC47C(u8);
|
||||
extern void task00_battle_intro_80BC6C8(u8);
|
||||
extern void task_battle_intro_80BC47C(u8);
|
||||
extern void task_battle_intro_anim(u8);
|
||||
|
||||
const TaskFunc gUnknown_08597424[] =
|
||||
{
|
||||
task_battle_intro_80BC47C,
|
||||
task_battle_intro_80BC47C,
|
||||
task00_battle_intro_80BC6C8,
|
||||
task00_battle_intro_80BC6C8,
|
||||
task00_battle_intro_80BC6C8,
|
||||
task_battle_intro_80BC47C,
|
||||
task_battle_intro_80BC47C,
|
||||
task_battle_intro_80BC47C,
|
||||
task_battle_intro_anim,
|
||||
task_battle_intro_anim,
|
||||
};
|
189
src/bug.c
Normal file
189
src/bug.c
Normal file
@ -0,0 +1,189 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_8110368(struct Sprite *);
|
||||
extern void sub_8110438(struct Sprite *);
|
||||
extern void sub_81104E4(struct Sprite *);
|
||||
extern void sub_81105B4(struct Sprite *);
|
||||
extern void sub_811067C(struct Sprite *);
|
||||
extern void sub_8110720(struct Sprite *);
|
||||
extern void sub_8110850(struct Sprite *);
|
||||
extern void sub_8110994(struct Sprite *);
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596938[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 30, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596948[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, -99, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596958[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 94, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596968[] =
|
||||
{
|
||||
gUnknown_08596938,
|
||||
gUnknown_08596948,
|
||||
gUnknown_08596958,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596974 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HORN_HIT_2,
|
||||
.paletteTag = ANIM_TAG_HORN_HIT_2,
|
||||
.oam = &gUnknown_085249F4,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596968,
|
||||
.callback = sub_8110368,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859698C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -33, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859699C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 96, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085969AC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -96, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085969BC[] =
|
||||
{
|
||||
gUnknown_0859698C,
|
||||
gUnknown_0859699C,
|
||||
gUnknown_085969AC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085969C8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_NEEDLE,
|
||||
.paletteTag = ANIM_TAG_NEEDLE,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085969BC,
|
||||
.callback = sub_8110438,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085969E0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WEB_THREAD,
|
||||
.paletteTag = ANIM_TAG_WEB_THREAD,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81104E4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085969F8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_STRING,
|
||||
.paletteTag = ANIM_TAG_STRING,
|
||||
.oam = &gUnknown_0852493C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81105B4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596A10[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x10, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x6, 0x6, 0, 1),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596A28[] =
|
||||
{
|
||||
gUnknown_08596A10,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596A2C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPIDER_WEB,
|
||||
.paletteTag = ANIM_TAG_SPIDER_WEB,
|
||||
.oam = &gUnknown_08524AFC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596A28,
|
||||
.callback = sub_811067C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gLinearStingerSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_NEEDLE,
|
||||
.paletteTag = ANIM_TAG_NEEDLE,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110720,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gPinMissileSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_NEEDLE,
|
||||
.paletteTag = ANIM_TAG_NEEDLE,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110850,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gIcicleSpearSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICICLE_SPEAR,
|
||||
.paletteTag = ANIM_TAG_ICICLE_SPEAR,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110850,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596A8C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x10, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 18),
|
||||
AFFINEANIMCMD_LOOP(0),
|
||||
AFFINEANIMCMD_FRAME(0xFFFB, 0xFFFB, 0, 8),
|
||||
AFFINEANIMCMD_FRAME(0x5, 0x5, 0, 8),
|
||||
AFFINEANIMCMD_LOOP(5),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596AC4[] =
|
||||
{
|
||||
gUnknown_08596A8C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596AC8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524A9C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596AC4,
|
||||
.callback = sub_8110994,
|
||||
};
|
169
src/dark.c
Normal file
169
src/dark.c
Normal file
@ -0,0 +1,169 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_81138D4(struct Sprite *);
|
||||
extern void sub_81139DC(struct Sprite *);
|
||||
extern void sub_8113A90(struct Sprite *);
|
||||
extern void sub_81144BC(struct Sprite *);
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596FC8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_TIED_BAG,
|
||||
.paletteTag = ANIM_TAG_TIED_BAG,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81138D4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596FE0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596FF0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 32, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597000[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 64, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597010[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 96, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597020[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -128, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597030[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -96, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597040[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -64, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597050[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -32, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08597060[] =
|
||||
{
|
||||
gUnknown_08596FE0,
|
||||
gUnknown_08596FF0,
|
||||
gUnknown_08597000,
|
||||
gUnknown_08597010,
|
||||
gUnknown_08597020,
|
||||
gUnknown_08597030,
|
||||
gUnknown_08597040,
|
||||
gUnknown_08597050,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08597080 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SHARP_TEETH,
|
||||
.paletteTag = ANIM_TAG_SHARP_TEETH,
|
||||
.oam = &gUnknown_08524A9C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597060,
|
||||
.callback = sub_81139DC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08597098 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CLAMP,
|
||||
.paletteTag = ANIM_TAG_CLAMP,
|
||||
.oam = &gUnknown_08524A9C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597060,
|
||||
.callback = sub_81139DC,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085970B0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xC0, 0xC0, 80, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -2, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085970C8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xC0, 0xC0, -80, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 2, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085970E0[] =
|
||||
{
|
||||
gUnknown_085970B0,
|
||||
gUnknown_085970C8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085970E8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085970E0,
|
||||
.callback = sub_8113A90,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08597100[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4),
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
ANIMCMD_FRAME(32, 4),
|
||||
ANIMCMD_FRAME(48, 4),
|
||||
ANIMCMD_FRAME(64, 4),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08597118[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(16, 4, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(32, 4, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(48, 4, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(64, 4, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08597130[] =
|
||||
{
|
||||
gUnknown_08597100,
|
||||
gUnknown_08597118,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8597138 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CLAW_SLASH,
|
||||
.paletteTag = ANIM_TAG_CLAW_SLASH,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08597130,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81144BC,
|
||||
};
|
180
src/dragon.c
Normal file
180
src/dragon.c
Normal file
@ -0,0 +1,180 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_8113064(struct Sprite *);
|
||||
extern void sub_8113224(struct Sprite *);
|
||||
extern void sub_81131B4(struct Sprite *);
|
||||
extern void sub_8113224(struct Sprite *);
|
||||
extern void sub_8113250(struct Sprite *);
|
||||
extern void sub_81135EC(struct Sprite *);
|
||||
|
||||
const union AnimCmd gUnknown_08596E60[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4),
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
ANIMCMD_FRAME(32, 4),
|
||||
ANIMCMD_FRAME(48, 4),
|
||||
ANIMCMD_FRAME(64, 4),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596E78[] =
|
||||
{
|
||||
gUnknown_08596E60,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8596E7C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596E78,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8113064,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596E94[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 3),
|
||||
ANIMCMD_FRAME(32, 3),
|
||||
ANIMCMD_FRAME(48, 3),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596EA4[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 3, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(32, 3, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(48, 3, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596EB4[] =
|
||||
{
|
||||
gUnknown_08596E94,
|
||||
gUnknown_08596EA4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596EBC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x50, 0x50, 127, 0),
|
||||
AFFINEANIMCMD_FRAME(0xD, 0xD, 0, 100),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596ED4[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x50, 0x50, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xD, 0xD, 0, 100),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596EEC[] =
|
||||
{
|
||||
gUnknown_08596EBC,
|
||||
gUnknown_08596ED4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596EF4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_085249D4,
|
||||
.anims = gUnknown_08596EB4,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596EEC,
|
||||
.callback = sub_8113224,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596F0C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(32, 5),
|
||||
ANIMCMD_FRAME(48, 5),
|
||||
ANIMCMD_FRAME(64, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596F24[] =
|
||||
{
|
||||
gUnknown_08596F0C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596F28 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_FIRE_PLUME,
|
||||
.paletteTag = ANIM_TAG_FIRE_PLUME,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596F24,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81131B4,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596F40[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 3),
|
||||
ANIMCMD_FRAME(32, 3),
|
||||
ANIMCMD_FRAME(48, 3),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596F50[] =
|
||||
{
|
||||
gUnknown_08596F40,
|
||||
gUnknown_08596F40,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596F58[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x64, 0x64, 127, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596F68[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x64, 0x64, 0, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596F78[] =
|
||||
{
|
||||
gUnknown_08596F58,
|
||||
gUnknown_08596F68,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596F80 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_085249D4,
|
||||
.anims = gUnknown_08596F50,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596F78,
|
||||
.callback = sub_8113224,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596F98 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HOLLOW_ORB,
|
||||
.paletteTag = ANIM_TAG_HOLLOW_ORB,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8113250,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596FB0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596E78,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81135EC,
|
||||
};
|
2093
src/effects_1.c
Normal file
2093
src/effects_1.c
Normal file
File diff suppressed because it is too large
Load Diff
1197
src/effects_2.c
Normal file
1197
src/effects_2.c
Normal file
File diff suppressed because it is too large
Load Diff
438
src/electric.c
Normal file
438
src/electric.c
Normal file
@ -0,0 +1,438 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_810A1A8(struct Sprite *);
|
||||
extern void sub_810A214(struct Sprite *);
|
||||
extern void sub_810A274(struct Sprite *);
|
||||
extern void sub_810A308(struct Sprite *);
|
||||
extern void TranslateAnimSpriteToTargetMonLocation(struct Sprite *);
|
||||
extern void sub_810A46C(struct Sprite *);
|
||||
extern void sub_810A5BC(struct Sprite *);
|
||||
extern void sub_810A628(struct Sprite *);
|
||||
extern void sub_810A75C(struct Sprite *);
|
||||
extern void sub_810A9DC(struct Sprite *);
|
||||
extern void sub_810AA2C(struct Sprite *);
|
||||
extern void sub_810ACD8(struct Sprite *);
|
||||
extern void sub_810AD30(struct Sprite *);
|
||||
extern void sub_810AD98(struct Sprite *);
|
||||
extern void sub_810B1F0(struct Sprite *);
|
||||
extern void sub_810B23C(struct Sprite *);
|
||||
extern void sub_810B51C(struct Sprite *);
|
||||
|
||||
const union AnimCmd gUnknown_085956A4[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(32, 8),
|
||||
ANIMCMD_FRAME(48, 5),
|
||||
ANIMCMD_FRAME(64, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085956BC[] =
|
||||
{
|
||||
gUnknown_085956A4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085956C0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_LIGHTNING,
|
||||
.paletteTag = ANIM_TAG_LIGHTNING,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085956BC,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810A1A8,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085956D8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 20),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -16, 60),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085956F8[] =
|
||||
{
|
||||
gUnknown_085956D8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085956FC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085956F8,
|
||||
.callback = sub_810A214,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595714[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(32, 5),
|
||||
ANIMCMD_FRAME(48, 5),
|
||||
ANIMCMD_FRAME(64, 5),
|
||||
ANIMCMD_FRAME(80, 5),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595730[] =
|
||||
{
|
||||
gUnknown_08595714,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595734 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SHOCK,
|
||||
.paletteTag = ANIM_TAG_SHOCK,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595730,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810A274,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_859574C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK_2,
|
||||
.paletteTag = ANIM_TAG_SPARK_2,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810A308,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595764 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BLACK_BALL_2,
|
||||
.paletteTag = ANIM_TAG_BLACK_BALL_2,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = TranslateAnimSpriteToTargetMonLocation,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859577C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 20, 1),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_0859578C[] =
|
||||
{
|
||||
gUnknown_0859577C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595790 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK_2,
|
||||
.paletteTag = ANIM_TAG_SPARK_2,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_0859578C,
|
||||
.callback = sub_810A46C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085957A8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 6),
|
||||
ANIMCMD_FRAME(16, 6),
|
||||
ANIMCMD_FRAME(32, 6),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085957B8[] =
|
||||
{
|
||||
gUnknown_085957A8,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085957BC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xE8, 0xE8, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 10),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 10),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085957DC[] =
|
||||
{
|
||||
gUnknown_085957BC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_85957E0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SHOCK_3,
|
||||
.paletteTag = ANIM_TAG_SHOCK_3,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gUnknown_085957B8,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085957DC,
|
||||
.callback = sub_810A5BC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_85957F8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK_2,
|
||||
.paletteTag = ANIM_TAG_SPARK_2,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_0859578C,
|
||||
.callback = sub_810A628,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gElectricitySpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK_2,
|
||||
.paletteTag = ANIM_TAG_SPARK_2,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810A75C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595828 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK,
|
||||
.paletteTag = ANIM_TAG_SPARK,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810A9DC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595840 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK_H,
|
||||
.paletteTag = ANIM_TAG_SPARK_H,
|
||||
.oam = &gUnknown_08524934,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810AA2C,
|
||||
};
|
||||
|
||||
const s8 gUnknown_08595858[][2] =
|
||||
{
|
||||
{ 58, -60},
|
||||
{-56, -36},
|
||||
{ 8, -56},
|
||||
{-16, 56},
|
||||
{ 58, -10},
|
||||
{-58, 10},
|
||||
{ 48, -18},
|
||||
{-8, 56},
|
||||
{ 16, -56},
|
||||
{-58, -42},
|
||||
{ 58, 30},
|
||||
{-48, 40},
|
||||
{ 12, -48},
|
||||
{ 48, -12},
|
||||
{-56, 18},
|
||||
{ 48, 48},
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595878[] =
|
||||
{
|
||||
ANIMCMD_FRAME(3, 1),
|
||||
ANIMCMD_FRAME(2, 1),
|
||||
ANIMCMD_FRAME(1, 1),
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859588C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(1, 5),
|
||||
ANIMCMD_FRAME(2, 5),
|
||||
ANIMCMD_FRAME(3, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085958A0[] =
|
||||
{
|
||||
gUnknown_08595878,
|
||||
gUnknown_0859588C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085958A8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ELECTRIC_ORBS,
|
||||
.paletteTag = ANIM_TAG_ELECTRIC_ORBS,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gUnknown_085958A0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = SpriteCallbackDummy,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085958C0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x10, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x4, 0x4, 0, 60),
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_LOOP(0),
|
||||
AFFINEANIMCMD_FRAME(0xFFFC, 0xFFFC, 0, 5),
|
||||
AFFINEANIMCMD_FRAME(0x4, 0x4, 0, 5),
|
||||
AFFINEANIMCMD_LOOP(10),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595900[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x10, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 30),
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFFC, 0xFFFC, 0, 5),
|
||||
AFFINEANIMCMD_FRAME(0x4, 0x4, 0, 5),
|
||||
AFFINEANIMCMD_JUMP(3),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595930[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x10, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 30),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 30),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595950[] =
|
||||
{
|
||||
gUnknown_085958C0,
|
||||
gUnknown_08595900,
|
||||
gUnknown_08595930,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859595C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524A9C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595950,
|
||||
.callback = sub_810ACD8,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595974[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 3),
|
||||
ANIMCMD_FRAME(16, 3),
|
||||
ANIMCMD_FRAME(32, 3),
|
||||
ANIMCMD_FRAME(48, 3),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595988[] =
|
||||
{
|
||||
gUnknown_08595974,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859598C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ELECTRICITY,
|
||||
.paletteTag = ANIM_TAG_ELECTRICITY,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595988,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810AD30,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085959A4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524A9C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595950,
|
||||
.callback = sub_810AD98,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085959BC[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 3),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085959C4[] =
|
||||
{
|
||||
ANIMCMD_FRAME(2, 3),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085959CC[] =
|
||||
{
|
||||
ANIMCMD_FRAME(4, 3),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085959D4[] =
|
||||
{
|
||||
ANIMCMD_FRAME(6, 3),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085959DC[] =
|
||||
{
|
||||
gUnknown_085959BC,
|
||||
gUnknown_085959C4,
|
||||
gUnknown_085959CC,
|
||||
gUnknown_085959D4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085959EC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 64, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085959FC[] =
|
||||
{
|
||||
gUnknown_085959EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595A00 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK,
|
||||
.paletteTag = ANIM_TAG_SPARK,
|
||||
.oam = &gUnknown_08524A04,
|
||||
.anims = gUnknown_085959DC,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085959FC,
|
||||
.callback = sub_810B1F0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595A18 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524A9C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595950,
|
||||
.callback = sub_810B23C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595A30 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARK,
|
||||
.paletteTag = ANIM_TAG_SPARK,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810B51C,
|
||||
};
|
398
src/fight.c
Normal file
398
src/fight.c
Normal file
@ -0,0 +1,398 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void unc_080B08A0(struct Sprite *);
|
||||
extern void sub_810CE68(struct Sprite *);
|
||||
extern void sub_810CEB4(struct Sprite *);
|
||||
extern void sub_810CEE0(struct Sprite *);
|
||||
extern void sub_810CF30(struct Sprite *);
|
||||
extern void sub_810D10C(struct Sprite *);
|
||||
extern void sub_810D1B4(struct Sprite *);
|
||||
extern void sub_810D278(struct Sprite *);
|
||||
extern void sub_810D2E4(struct Sprite *);
|
||||
extern void sub_810D37C(struct Sprite *);
|
||||
extern void sub_810D40C(struct Sprite *);
|
||||
extern void sub_810D4F4(struct Sprite *);
|
||||
extern void sub_810D608(struct Sprite *);
|
||||
extern void sub_810D714(struct Sprite *);
|
||||
extern void sub_810D874(struct Sprite *);
|
||||
extern void sub_810D984(struct Sprite *);
|
||||
extern void sub_810DA10(struct Sprite *);
|
||||
extern void sub_810DA7C(struct Sprite *);
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595E14 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HUMANOID_FOOT,
|
||||
.paletteTag = ANIM_TAG_HUMANOID_FOOT,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = unc_080B08A0,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595E2C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595E34[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595E3C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(32, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595E44[] =
|
||||
{
|
||||
ANIMCMD_FRAME(48, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595E4C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(48, 1, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595E54[] =
|
||||
{
|
||||
gUnknown_08595E2C,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595E58[] =
|
||||
{
|
||||
gUnknown_08595E34,
|
||||
gUnknown_08595E3C,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595E60[] =
|
||||
{
|
||||
gUnknown_08595E44,
|
||||
gUnknown_08595E4C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595E68 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810CE68,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595E80 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810CEB4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gFistFootSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810CEE0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595EB0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810CF30,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595EC8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E60,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D10C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595EE0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E58,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D1B4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595EF8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 20, 1),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595F10[] =
|
||||
{
|
||||
gUnknown_08595EF8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595F14 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_085249D4,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595F10,
|
||||
.callback = sub_810D278,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595F2C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFFC, 0xFFFC, 20, 1),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595F44[] =
|
||||
{
|
||||
gUnknown_08595F2C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gMegaPunchKickSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_085249D4,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595F44,
|
||||
.callback = sub_810D278,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595F60 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E58,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D2E4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595F78 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_DUCK,
|
||||
.paletteTag = ANIM_TAG_DUCK,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D37C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595F90 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BLUE_LIGHT_WALL,
|
||||
.paletteTag = ANIM_TAG_BLUE_LIGHT_WALL,
|
||||
.oam = &gUnknown_08524A3C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D40C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595FA8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_TORN_METAL,
|
||||
.paletteTag = ANIM_TAG_TORN_METAL,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D4F4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595FC0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x20, 0x20, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x4, 0x4, 0, 64),
|
||||
AFFINEANIMCMD_FRAME(0xFFFA, 0xFFFA, 0, 8),
|
||||
AFFINEANIMCMD_FRAME(0x6, 0x6, 0, 8),
|
||||
AFFINEANIMCMD_JUMP(2),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595FE8[] =
|
||||
{
|
||||
gUnknown_08595FC0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595FEC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524AFC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595FE8,
|
||||
.callback = sub_810D608,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596004 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_FLAT_ROCK,
|
||||
.paletteTag = ANIM_TAG_FLAT_ROCK,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D714,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859601C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_METEOR,
|
||||
.paletteTag = ANIM_TAG_METEOR,
|
||||
.oam = &gUnknown_0852491C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D874,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596034 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810D984,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859604C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4),
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
ANIMCMD_FRAME(32, 4),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859605C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4, .vFlip = TRUE),
|
||||
ANIMCMD_FRAME(16, 4, .vFlip = TRUE),
|
||||
ANIMCMD_FRAME(32, 4, .vFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859606C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(16, 4, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(32, 4, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_0859607C[] =
|
||||
{
|
||||
gUnknown_0859604C,
|
||||
gUnknown_0859605C,
|
||||
gUnknown_0859606C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596088 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_PURPLE_SCRATCH,
|
||||
.paletteTag = ANIM_TAG_PURPLE_SCRATCH,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_0859607C,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810DA10,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085960A0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 6),
|
||||
ANIMCMD_FRAME(64, 6),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085960AC[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 6, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(64, 6, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085960B8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 6, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(64, 6, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085960C4[] =
|
||||
{
|
||||
gUnknown_085960A0,
|
||||
gUnknown_085960AC,
|
||||
gUnknown_085960B8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085960D0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_PURPLE_SWIPE,
|
||||
.paletteTag = ANIM_TAG_PURPLE_SWIPE,
|
||||
.oam = &gUnknown_0852491C,
|
||||
.anims = gUnknown_085960C4,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810DA10,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085960E8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x200, 0x200, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFE0, 0xFFE0, 0, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596100[] =
|
||||
{
|
||||
gUnknown_085960E8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596104 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.paletteTag = ANIM_TAG_HANDS_AND_FEET,
|
||||
.oam = &gUnknown_085249D4,
|
||||
.anims = gUnknown_08595E54,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596100,
|
||||
.callback = sub_810DA7C,
|
||||
};
|
438
src/fire.c
Normal file
438
src/fire.c
Normal file
@ -0,0 +1,438 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_8108EC8(struct Sprite *);
|
||||
extern void sub_8108F08(struct Sprite *);
|
||||
extern void sub_8108FBC(struct Sprite *);
|
||||
extern void sub_8108F4C(struct Sprite *);
|
||||
extern void sub_8109064(struct Sprite *);
|
||||
extern void sub_810916C(struct Sprite *);
|
||||
extern void TranslateAnimSpriteToTargetMonLocation(struct Sprite *);
|
||||
extern void sub_8109198(struct Sprite *);
|
||||
extern void sub_8109200(struct Sprite *);
|
||||
extern void sub_810921C(struct Sprite *);
|
||||
extern void sub_8109364(struct Sprite *);
|
||||
extern void sub_81093A4(struct Sprite *);
|
||||
extern void sub_80A8EE4(struct Sprite *);
|
||||
extern void sub_81098EC(struct Sprite *);
|
||||
extern void sub_8109A10(struct Sprite *);
|
||||
extern void sub_8109AFC(struct Sprite *);
|
||||
extern void sub_8109CB0(struct Sprite *);
|
||||
|
||||
const union AnimCmd gUnknown_08595340[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
ANIMCMD_FRAME(32, 4),
|
||||
ANIMCMD_FRAME(48, 4),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595350[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 4, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(32, 4, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(48, 4, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595360[] =
|
||||
{
|
||||
gUnknown_08595340,
|
||||
gUnknown_08595350,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595368 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595360,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8108EC8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595380 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595360,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8108F08,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595398[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 3),
|
||||
ANIMCMD_FRAME(16, 3),
|
||||
ANIMCMD_FRAME(32, 3),
|
||||
ANIMCMD_FRAME(48, 3),
|
||||
ANIMCMD_FRAME(64, 3),
|
||||
ANIMCMD_FRAME(80, 3),
|
||||
ANIMCMD_FRAME(96, 3),
|
||||
ANIMCMD_FRAME(112, 3),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085953BC[] =
|
||||
{
|
||||
gUnknown_08595398,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085953C0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(32, 5),
|
||||
ANIMCMD_FRAME(48, 5),
|
||||
ANIMCMD_FRAME(64, 5),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085953D8[] =
|
||||
{
|
||||
gUnknown_085953C0,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085953DC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x32, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x20, 0x0, 0, 7),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085953F4[] =
|
||||
{
|
||||
gUnknown_085953DC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085953F8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_FIRE,
|
||||
.paletteTag = ANIM_TAG_FIRE,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gUnknown_085953BC,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085953F4,
|
||||
.callback = sub_8108FBC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595410 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_FIRE,
|
||||
.paletteTag = ANIM_TAG_FIRE,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085953BC,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8108FBC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595428 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_FIRE_PLUME,
|
||||
.paletteTag = ANIM_TAG_FIRE_PLUME,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085953D8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8108F4C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595440 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085953D8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8108F4C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595458[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 6),
|
||||
ANIMCMD_FRAME(32, 6),
|
||||
ANIMCMD_FRAME(48, 6),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595468[] =
|
||||
{
|
||||
gUnknown_08595458,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859546C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595468,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109064,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595484[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x50, 0x50, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x2, 0x2, 10, 1),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_0859549C[] =
|
||||
{
|
||||
gUnknown_08595484,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085954A0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SUNLIGHT,
|
||||
.paletteTag = ANIM_TAG_SUNLIGHT,
|
||||
.oam = &gUnknown_08524A94,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_0859549C,
|
||||
.callback = sub_810916C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085954B8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4),
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
ANIMCMD_FRAME(32, 4),
|
||||
ANIMCMD_FRAME(48, 4),
|
||||
ANIMCMD_FRAME(64, 4),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085954D0[] =
|
||||
{
|
||||
gUnknown_085954B8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gEmberSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = TranslateAnimSpriteToTargetMonLocation,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gEmberFlareSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085954D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109198,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595504 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085954D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109200,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859551C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085954D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810921C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595534[] =
|
||||
{
|
||||
ANIMCMD_FRAME(32, 6),
|
||||
ANIMCMD_FRAME(48, 6),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595540[] =
|
||||
{
|
||||
gUnknown_08595534,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595544[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595554[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xA0, 0xA0, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595564[] =
|
||||
{
|
||||
gUnknown_08595544,
|
||||
gUnknown_08595554,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859556C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595540,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109364,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8595584 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085954D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81093A4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859559C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085954D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_80A8EE4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085955B4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WARM_ROCK,
|
||||
.paletteTag = ANIM_TAG_WARM_ROCK,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81098EC,
|
||||
};
|
||||
|
||||
// gHeatedRockCoords
|
||||
const s16 gUnknown_085955CC[][2] =
|
||||
{
|
||||
{-2, -5},
|
||||
{-1, -1},
|
||||
{ 3, -6},
|
||||
{ 4, -2},
|
||||
{ 2, -8},
|
||||
{-5, -5},
|
||||
{ 4, -7},
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085955E8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WARM_ROCK,
|
||||
.paletteTag = ANIM_TAG_WARM_ROCK,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109A10,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595600[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(4, 5),
|
||||
ANIMCMD_FRAME(8, 5),
|
||||
ANIMCMD_FRAME(12, 5),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595614[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859561C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(20, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595624[] =
|
||||
{
|
||||
ANIMCMD_FRAME(20, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_0859562C[] =
|
||||
{
|
||||
gUnknown_08595600,
|
||||
gUnknown_08595614,
|
||||
gUnknown_0859561C,
|
||||
gUnknown_08595624,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859563C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WISP_ORB,
|
||||
.paletteTag = ANIM_TAG_WISP_ORB,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gUnknown_0859562C,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109AFC,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595654[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(32, 5),
|
||||
ANIMCMD_FRAME(48, 5),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595668[] =
|
||||
{
|
||||
gUnknown_08595654,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859566C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WISP_FIRE,
|
||||
.paletteTag = ANIM_TAG_WISP_FIRE,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595668,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8109CB0,
|
||||
};
|
||||
|
||||
const s8 gUnknown_08595684[16] =
|
||||
{
|
||||
-1, -1, 0, 1, 1, 0, 0, -1, -1, 1, 1, 0, 0, -1, 0, 1,
|
||||
};
|
||||
|
||||
const s8 gUnknown_08595694[16] =
|
||||
{
|
||||
-1, 0, 1, 0, -1, 1, 0, -1, 0, 1, 0, -1, 0, 1, 0, 1,
|
||||
};
|
328
src/flying.c
Normal file
328
src/flying.c
Normal file
@ -0,0 +1,328 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_810DE70(struct Sprite *);
|
||||
extern void sub_810DFA8(struct Sprite *);
|
||||
extern void sub_810E044(struct Sprite *);
|
||||
extern void sub_810E13C(struct Sprite *);
|
||||
extern void sub_810E1C8(struct Sprite *);
|
||||
extern void sub_810E314(struct Sprite *);
|
||||
extern void sub_810EA4C(struct Sprite *);
|
||||
extern void sub_810EAA0(struct Sprite *);
|
||||
extern void sub_810EC34(struct Sprite *);
|
||||
extern void sub_810EC94(struct Sprite *);
|
||||
extern void sub_810ED28(struct Sprite *);
|
||||
extern void sub_810EE14(struct Sprite *);
|
||||
extern void sub_810EEF8(struct Sprite *);
|
||||
extern void sub_810F004(struct Sprite *);
|
||||
extern void sub_810F084(struct Sprite *);
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596270 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GUST,
|
||||
.paletteTag = ANIM_TAG_GUST,
|
||||
.oam = &gUnknown_0852495C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810DE70,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596288[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xA, 0x0, 0, 24),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085962A0[] =
|
||||
{
|
||||
gUnknown_08596288,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_85962A4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GUST,
|
||||
.paletteTag = ANIM_TAG_GUST,
|
||||
.oam = &gUnknown_085249BC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085962A0,
|
||||
.callback = sub_810DFA8,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085962BC[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 3),
|
||||
ANIMCMD_FRAME(0, 3, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(0, 3, .vFlip = TRUE),
|
||||
ANIMCMD_FRAME(0, 3, .vFlip = TRUE, .hFlip = TRUE),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085962D0[] =
|
||||
{
|
||||
gUnknown_085962BC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085962D4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_AIR_WAVE_2,
|
||||
.paletteTag = ANIM_TAG_AIR_WAVE_2,
|
||||
.oam = &gUnknown_08524934,
|
||||
.anims = gUnknown_085962D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810E044,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085962EC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x28, 0x0, 0, 6),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0xFFE0, 0, 5),
|
||||
AFFINEANIMCMD_FRAME(0xFFF0, 0x20, 0, 10),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596314[] =
|
||||
{
|
||||
gUnknown_085962EC,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596318[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 50, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596328[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -40, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596338[] =
|
||||
{
|
||||
gUnknown_08596318,
|
||||
gUnknown_08596328,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596340 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.paletteTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.oam = &gUnknown_085249DC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596314,
|
||||
.callback = sub_810E13C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596358 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.paletteTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.oam = &gUnknown_0852497C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596338,
|
||||
.callback = sub_810E1C8,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596370[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 0),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596378[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 0, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596380[] =
|
||||
{
|
||||
gUnknown_08596370,
|
||||
gUnknown_08596378,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596388 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WHITE_FEATHER,
|
||||
.paletteTag = ANIM_TAG_WHITE_FEATHER,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gUnknown_08596380,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810E314,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085963A0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810EA4C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085963B8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_FRAME(8, 1),
|
||||
ANIMCMD_FRAME(16, 1),
|
||||
ANIMCMD_FRAME(8, 1, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(0, 1, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085963D0[] =
|
||||
{
|
||||
gUnknown_085963B8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085963D4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WHIRLWIND_LINES,
|
||||
.paletteTag = ANIM_TAG_WHIRLWIND_LINES,
|
||||
.oam = &gUnknown_08524934,
|
||||
.anims = gUnknown_085963D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810EAA0,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085963EC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x28, 0x0, 0, 6),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0xFFE0, 0, 5),
|
||||
AFFINEANIMCMD_FRAME(0xFFEC, 0x0, 0, 7),
|
||||
AFFINEANIMCMD_FRAME(0xFFEC, 0xFFEC, 0, 5),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_0859641C[] =
|
||||
{
|
||||
gUnknown_085963EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596420 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.paletteTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.oam = &gUnknown_085249DC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_0859641C,
|
||||
.callback = sub_810EC34,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596438[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xA0, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596448[] =
|
||||
{
|
||||
gUnknown_08596438,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859644C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.paletteTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.oam = &gUnknown_085249DC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596448,
|
||||
.callback = sub_810EC94,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596464[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x28, 0x0, 0, 6),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0xFFE0, 0, 5),
|
||||
AFFINEANIMCMD_FRAME(0xFFF0, 0x20, 0, 10),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_0859648C[] =
|
||||
{
|
||||
gUnknown_08596464,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596490 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.paletteTag = ANIM_TAG_ROUND_SHADOW,
|
||||
.oam = &gUnknown_085249DC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_0859648C,
|
||||
.callback = sub_810ED28,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085964A8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x20, 0, 12),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0xFFE0, 0, 11),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085964C8[] =
|
||||
{
|
||||
gUnknown_085964A8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085964CC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPLASH,
|
||||
.paletteTag = ANIM_TAG_SPLASH,
|
||||
.oam = &gUnknown_085249DC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810EE14,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085964E4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SWEAT_BEAD,
|
||||
.paletteTag = ANIM_TAG_SWEAT_BEAD,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810EEF8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085964FC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524A3C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F004,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596514 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BIRD,
|
||||
.paletteTag = ANIM_TAG_BIRD,
|
||||
.oam = &gUnknown_085249DC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F084,
|
||||
};
|
186
src/ghost.c
Normal file
186
src/ghost.c
Normal file
@ -0,0 +1,186 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_811160C(struct Sprite *);
|
||||
extern void sub_81117F4(struct Sprite *);
|
||||
extern void sub_81119E0(struct Sprite *);
|
||||
extern void sub_8111B9C(struct Sprite *);
|
||||
extern void sub_8112264(struct Sprite *);
|
||||
extern void sub_81129F0(struct Sprite *);
|
||||
extern void sub_8112B78(struct Sprite *);
|
||||
extern void sub_8112E9C(struct Sprite *);
|
||||
extern void sub_8112F60(struct Sprite *);
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596CF8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x1E, 0x1E, 10, 5),
|
||||
AFFINEANIMCMD_FRAME(0xFFE2, 0xFFE2, 10, 5),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596D10[] =
|
||||
{
|
||||
gUnknown_08596CF8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596D14 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_YELLOW_BALL,
|
||||
.paletteTag = ANIM_TAG_YELLOW_BALL,
|
||||
.oam = &gUnknown_085249CC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596D10,
|
||||
.callback = sub_811160C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596D2C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_YELLOW_BALL,
|
||||
.paletteTag = ANIM_TAG_YELLOW_BALL,
|
||||
.oam = &gUnknown_08524A2C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81117F4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596D44[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 10, 1),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596D54[] =
|
||||
{
|
||||
gUnknown_08596D44,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596D58 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SHADOW_BALL,
|
||||
.paletteTag = ANIM_TAG_SHADOW_BALL,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596D54,
|
||||
.callback = sub_81119E0,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596D70[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 2),
|
||||
ANIMCMD_FRAME(8, 2),
|
||||
ANIMCMD_FRAME(16, 2),
|
||||
ANIMCMD_FRAME(24, 2),
|
||||
ANIMCMD_FRAME(32, 2),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596D88[] =
|
||||
{
|
||||
gUnknown_08596D70,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596D8C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_LICK,
|
||||
.paletteTag = ANIM_TAG_LICK,
|
||||
.oam = &gUnknown_08524954,
|
||||
.anims = gUnknown_08596D88,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8111B9C,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596DA4[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x200, 0x200, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596DB4[] =
|
||||
{
|
||||
gUnknown_08596DA4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596DB8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WHITE_SHADOW,
|
||||
.paletteTag = ANIM_TAG_WHITE_SHADOW,
|
||||
.oam = &gUnknown_08524A5C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8112264,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596DD0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_NAIL,
|
||||
.paletteTag = ANIM_TAG_NAIL,
|
||||
.oam = &gUnknown_08524A54,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81129F0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8596DE8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GHOSTLY_SPIRIT,
|
||||
.paletteTag = ANIM_TAG_GHOSTLY_SPIRIT,
|
||||
.oam = &gUnknown_08524A34,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8112B78,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8596E00 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_DEVIL,
|
||||
.paletteTag = ANIM_TAG_DEVIL,
|
||||
.oam = &gUnknown_08524A34,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8112B78,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596E18[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 4),
|
||||
ANIMCMD_FRAME(8, 4),
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
ANIMCMD_FRAME(24, 4),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596E2C[] =
|
||||
{
|
||||
gUnknown_08596E18,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596E30 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_PURPLE_FLAME,
|
||||
.paletteTag = ANIM_TAG_PURPLE_FLAME,
|
||||
.oam = &gUnknown_08524A74,
|
||||
.anims = gUnknown_08596E2C,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8112E9C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596E48 =
|
||||
{
|
||||
.tileTag = 0,
|
||||
.paletteTag = 0,
|
||||
.oam = &gDummyOamData,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8112F60,
|
||||
};
|
121
src/ground.c
Normal file
121
src/ground.c
Normal file
@ -0,0 +1,121 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_8114994(struct Sprite *);
|
||||
extern void sub_8114A7C(struct Sprite *);
|
||||
extern void sub_8114AF0(struct Sprite *);
|
||||
extern void sub_8114AF0(struct Sprite *);
|
||||
extern void sub_8114B80(struct Sprite *);
|
||||
extern void sub_81151A0(struct Sprite *);
|
||||
extern void sub_8115244(struct Sprite *);
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597150[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 15, 1),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597160[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 20, 1),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08597170[] =
|
||||
{
|
||||
gUnknown_08597150,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08597174[] =
|
||||
{
|
||||
gUnknown_08597160,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08597178 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BONE,
|
||||
.paletteTag = ANIM_TAG_BONE,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597170,
|
||||
.callback = sub_8114994,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08597190 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BONE,
|
||||
.paletteTag = ANIM_TAG_BONE,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597174,
|
||||
.callback = sub_8114A7C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085971A8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_MUD_SAND,
|
||||
.paletteTag = ANIM_TAG_MUD_SAND,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8114AF0,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085971C0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(1, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085971C8[] =
|
||||
{
|
||||
gUnknown_085971C0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085971CC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_MUD_SAND,
|
||||
.paletteTag = ANIM_TAG_MUD_SAND,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gUnknown_085971C8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8114AF0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085971E4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_MUD_SAND,
|
||||
.paletteTag = ANIM_TAG_MUD_SAND,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8114B80,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085971FC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_MUD_SAND,
|
||||
.paletteTag = ANIM_TAG_MUD_SAND,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81151A0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08597214 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_DIRT_MOUND,
|
||||
.paletteTag = ANIM_TAG_DIRT_MOUND,
|
||||
.oam = &gUnknown_08524934,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8115244,
|
||||
};
|
491
src/ice.c
Normal file
491
src/ice.c
Normal file
@ -0,0 +1,491 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_810B6C4(struct Sprite *);
|
||||
extern void sub_810B8AC(struct Sprite *);
|
||||
extern void sub_810B8EC(struct Sprite *);
|
||||
extern void sub_810B974(struct Sprite *);
|
||||
extern void sub_810BA24(struct Sprite *);
|
||||
extern void sub_810BC94(struct Sprite *);
|
||||
extern void sub_810BE48(struct Sprite *);
|
||||
extern void sub_810BED0(struct Sprite *);
|
||||
extern void sub_810C2F0(struct Sprite *);
|
||||
extern void sub_810C560(struct Sprite *);
|
||||
extern void sub_810CB58(struct Sprite *);
|
||||
extern void sub_80A8EE4(struct Sprite *);
|
||||
extern void unc_080B06FC(struct Sprite *);
|
||||
extern void sub_810CD4C(struct Sprite *);
|
||||
|
||||
const union AnimCmd gUnknown_08595A48[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(1, 5, .hFlip = TRUE),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595A54[] =
|
||||
{
|
||||
gUnknown_08595A48,
|
||||
};
|
||||
|
||||
// unknown sprite template
|
||||
const struct SpriteTemplate gUnknown_08595A58 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810B6C4,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595A70[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595A78[] =
|
||||
{
|
||||
ANIMCMD_FRAME(4, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595A80[] =
|
||||
{
|
||||
ANIMCMD_FRAME(6, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595A88[] =
|
||||
{
|
||||
ANIMCMD_FRAME(7, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595A90[] =
|
||||
{
|
||||
ANIMCMD_FRAME(8, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595A98[] =
|
||||
{
|
||||
ANIMCMD_FRAME(12, 6),
|
||||
ANIMCMD_FRAME(13, 6),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595AA4[] =
|
||||
{
|
||||
gUnknown_08595A70,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595AA8[] =
|
||||
{
|
||||
gUnknown_08595A78,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595AAC[] =
|
||||
{
|
||||
gUnknown_08595A80,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595AB0[] =
|
||||
{
|
||||
gUnknown_08595A88,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595AB4[] =
|
||||
{
|
||||
gUnknown_08595A90,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595AB8[] =
|
||||
{
|
||||
gUnknown_08595A98,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595ABC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 40, 1),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595ACC[] =
|
||||
{
|
||||
gUnknown_08595ABC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595AD0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524B24,
|
||||
.anims = gUnknown_08595AA8,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595ACC,
|
||||
.callback = sub_810B8AC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595AE8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524A24,
|
||||
.anims = gUnknown_08595AAC,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810B8AC,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595B00[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 10, 1),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595B10[] =
|
||||
{
|
||||
gUnknown_08595B00,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595B14 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524AC4,
|
||||
.anims = gUnknown_08595AA8,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595B10,
|
||||
.callback = sub_810B8EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595B2C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524A24,
|
||||
.anims = gUnknown_08595AAC,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810B8EC,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595B44[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xCE, 0xCE, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x5, 0x5, 0, 10),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 6),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595B64[] =
|
||||
{
|
||||
gUnknown_08595B44,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595B68 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524AC4,
|
||||
.anims = gUnknown_08595AA8,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595B64,
|
||||
.callback = sub_810B974,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595B80 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524A84,
|
||||
.anims = gUnknown_08595AAC,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595B64,
|
||||
.callback = sub_810B974,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595B98 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gUnknown_08595AB0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810BA24,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595BB0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gUnknown_08595AB4,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810BC94,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595BC8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gUnknown_08595AB0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810BC94,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595BE0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(2, 5),
|
||||
ANIMCMD_FRAME(4, 5),
|
||||
ANIMCMD_FRAME(6, 5),
|
||||
ANIMCMD_FRAME(4, 5),
|
||||
ANIMCMD_FRAME(2, 5),
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595C00[] =
|
||||
{
|
||||
gUnknown_08595BE0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595C04 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_SPIKES,
|
||||
.paletteTag = ANIM_TAG_ICE_SPIKES,
|
||||
.oam = &gUnknown_08524A64,
|
||||
.anims = gUnknown_08595C00,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810BE48,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595C1C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 8),
|
||||
ANIMCMD_FRAME(8, 8),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595C28[] =
|
||||
{
|
||||
gUnknown_08595C1C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595C2C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_MIST_CLOUD,
|
||||
.paletteTag = ANIM_TAG_MIST_CLOUD,
|
||||
.oam = &gUnknown_08524A54,
|
||||
.anims = gUnknown_08595C28,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810BED0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595C44 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_PURPLE_GAS_CLOUD,
|
||||
.paletteTag = ANIM_TAG_PURPLE_GAS_CLOUD,
|
||||
.oam = &gUnknown_08524A54,
|
||||
.anims = gUnknown_08595C28,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810BED0,
|
||||
};
|
||||
|
||||
const u8 gUnknown_08595C5C[] =
|
||||
{
|
||||
0, 1, 2, 2, 2, 2, 3, 4, 4, 4, 5, 6, 6, 6, 6, 7, 8, 8, 8, 9,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595C70 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810C2F0,
|
||||
};
|
||||
|
||||
const u8 gUnknown_08595C88[] =
|
||||
{
|
||||
0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 3, 4, 4, 4, 4, 4, 5,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595C9C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_PURPLE_GAS_CLOUD,
|
||||
.paletteTag = ANIM_TAG_PURPLE_GAS_CLOUD,
|
||||
.oam = &gUnknown_08524A54,
|
||||
.anims = gUnknown_08595C28,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810C560,
|
||||
};
|
||||
|
||||
const u8 gUnknown_08595CB4[][4] =
|
||||
{
|
||||
{0x64, 0xE0, 0x01, 0x20},
|
||||
{0x55, 0xE0, 0x01, 0x00},
|
||||
{0xF2, 0xE0, 0x11, 0x10},
|
||||
{0x42, 0xE0, 0x21, 0x10},
|
||||
{0xB6, 0xE0, 0x31, 0x00},
|
||||
{0x3C, 0xE0, 0x01, 0x20},
|
||||
{0xD6, 0xE0, 0x11, 0x00},
|
||||
{0x71, 0xE0, 0x01, 0x10},
|
||||
{0xD2, 0xE0, 0x31, 0x10},
|
||||
{0x26, 0xE0, 0x21, 0x00},
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595CDC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595CEC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xF0, 0xF0, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595CFC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xE0, 0xE0, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595D0C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x150, 0x150, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595D1C[] =
|
||||
{
|
||||
gUnknown_08595CDC,
|
||||
gUnknown_08595CEC,
|
||||
gUnknown_08595CFC,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595D28[] =
|
||||
{
|
||||
gUnknown_08595D0C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595D2C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HAIL,
|
||||
.paletteTag = ANIM_TAG_HAIL,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595D1C,
|
||||
.callback = sub_810CB58,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595D44 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HAIL,
|
||||
.paletteTag = ANIM_TAG_HAIL,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595D28,
|
||||
.callback = sub_80A8EE4,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595D5C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595D64[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 4),
|
||||
ANIMCMD_FRAME(32, 4),
|
||||
ANIMCMD_FRAME(48, 4),
|
||||
ANIMCMD_FRAME(64, 4),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595D78[] =
|
||||
{
|
||||
gUnknown_08595D5C,
|
||||
gUnknown_08595D64,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595D80[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xE0, 0xE0, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595D90[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x118, 0x118, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595DA0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x150, 0x150, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595DB0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x180, 0x180, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595DC0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x1C0, 0x1C0, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595DD0[] =
|
||||
{
|
||||
gUnknown_08595D80,
|
||||
gUnknown_08595D90,
|
||||
gUnknown_08595DA0,
|
||||
gUnknown_08595DB0,
|
||||
gUnknown_08595DC0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595DE4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CHUNK,
|
||||
.paletteTag = ANIM_TAG_ICE_CHUNK,
|
||||
.oam = &gUnknown_085249D4,
|
||||
.anims = gUnknown_08595D78,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595DD0,
|
||||
.callback = unc_080B06FC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595DFC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gUnknown_08595AAC,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810CD4C,
|
||||
};
|
233
src/normal.c
Normal file
233
src/normal.c
Normal file
@ -0,0 +1,233 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_811572C(struct Sprite *);
|
||||
extern void sub_81157FC(struct Sprite *);
|
||||
extern void sub_81158A4(struct Sprite *);
|
||||
extern void sub_81159B4(struct Sprite *);
|
||||
extern void sub_81160A4(struct Sprite *);
|
||||
extern void sub_8116388(struct Sprite *);
|
||||
extern void sub_8116420(struct Sprite *);
|
||||
extern void sub_8116458(struct Sprite *);
|
||||
extern void sub_81164F0(struct Sprite *);
|
||||
extern void sub_8116560(struct Sprite *);
|
||||
extern void sub_81165A8(struct Sprite *);
|
||||
extern void sub_81163D0(struct Sprite *);
|
||||
|
||||
const union AnimCmd gUnknown_0859722C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 8),
|
||||
ANIMCMD_FRAME(4, 8),
|
||||
ANIMCMD_FRAME(0, 8, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(8, 8),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08597240[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 8, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(4, 8),
|
||||
ANIMCMD_FRAME(0, 8),
|
||||
ANIMCMD_FRAME(8, 8),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08597254[] =
|
||||
{
|
||||
gUnknown_0859722C,
|
||||
gUnknown_08597240,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gConfusionDuckSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_DUCK,
|
||||
.paletteTag = ANIM_TAG_DUCK,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gUnknown_08597254,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_811572C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gSimplePaletteBlendSpriteTemplate =
|
||||
{
|
||||
.tileTag = 0,
|
||||
.paletteTag = 0,
|
||||
.oam = &gDummyOamData,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81157FC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gComplexPaletteBlendSpriteTemplate =
|
||||
{
|
||||
.tileTag = 0,
|
||||
.paletteTag = 0,
|
||||
.oam = &gDummyOamData,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81158A4,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085972A4[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 3),
|
||||
ANIMCMD_FRAME(16, 3),
|
||||
ANIMCMD_FRAME(32, 3),
|
||||
ANIMCMD_FRAME(48, 3),
|
||||
ANIMCMD_FRAME(64, 3),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085972BC[] =
|
||||
{
|
||||
gUnknown_085972A4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085972C0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARKLE_4,
|
||||
.paletteTag = ANIM_TAG_SPARKLE_4,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085972BC,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81159B4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_85972D8 =
|
||||
{
|
||||
.tileTag = 0,
|
||||
.paletteTag = 0,
|
||||
.oam = &gDummyOamData,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81160A4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085972F0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597300[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xD8, 0xD8, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597318[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xB0, 0xB0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08597330[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x80, 0x80, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08597348[] =
|
||||
{
|
||||
gUnknown_085972F0,
|
||||
gUnknown_08597300,
|
||||
gUnknown_08597318,
|
||||
gUnknown_08597330,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBasicHitSplatSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_IMPACT,
|
||||
.paletteTag = ANIM_TAG_IMPACT,
|
||||
.oam = &gUnknown_08524A94,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597348,
|
||||
.callback = sub_8116388,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8597370 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_IMPACT,
|
||||
.paletteTag = ANIM_TAG_IMPACT,
|
||||
.oam = &gUnknown_08524A94,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597348,
|
||||
.callback = sub_8116420,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08597388 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WATER_IMPACT,
|
||||
.paletteTag = ANIM_TAG_WATER_IMPACT,
|
||||
.oam = &gUnknown_08524A94,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597348,
|
||||
.callback = sub_8116388,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085973A0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_IMPACT,
|
||||
.paletteTag = ANIM_TAG_IMPACT,
|
||||
.oam = &gUnknown_08524A94,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597348,
|
||||
.callback = sub_8116458,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_85973B8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_IMPACT,
|
||||
.paletteTag = ANIM_TAG_IMPACT,
|
||||
.oam = &gUnknown_08524A94,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597348,
|
||||
.callback = sub_81164F0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085973D0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CROSS_IMPACT,
|
||||
.paletteTag = ANIM_TAG_CROSS_IMPACT,
|
||||
.oam = &gUnknown_08524A34,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8116560,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085973E8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_IMPACT,
|
||||
.paletteTag = ANIM_TAG_IMPACT,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597348,
|
||||
.callback = sub_81165A8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08597400 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_IMPACT,
|
||||
.paletteTag = ANIM_TAG_IMPACT,
|
||||
.oam = &gUnknown_08524A94,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08597348,
|
||||
.callback = sub_81163D0,
|
||||
};
|
185
src/poison.c
Normal file
185
src/poison.c
Normal file
@ -0,0 +1,185 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_80A77C8(struct Sprite *);
|
||||
extern void sub_810DBAC(struct Sprite *);
|
||||
extern void sub_810DC2C(struct Sprite *);
|
||||
extern void sub_810DCD0(struct Sprite *);
|
||||
extern void sub_810DD50(struct Sprite *);
|
||||
extern void sub_810DDC4(struct Sprite *);
|
||||
extern void sub_810DDC4(struct Sprite *);
|
||||
|
||||
extern const union AnimCmd *const gUnknown_08595200[];
|
||||
|
||||
const union AnimCmd gUnknown_0859611C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(8, 5),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(24, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596130[] =
|
||||
{
|
||||
gUnknown_0859611C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596134 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_TOXIC_BUBBLE,
|
||||
.paletteTag = ANIM_TAG_TOXIC_BUBBLE,
|
||||
.oam = &gUnknown_08524954,
|
||||
.anims = gUnknown_08596130,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_80A77C8,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859614C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596154[] =
|
||||
{
|
||||
ANIMCMD_FRAME(4, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859615C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(8, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596164[] =
|
||||
{
|
||||
gUnknown_0859614C,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596168[] =
|
||||
{
|
||||
gUnknown_08596154,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_0859616C[] =
|
||||
{
|
||||
gUnknown_0859615C,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596170[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x160, 0x160, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF6, 0xFFF6, 0, 10),
|
||||
AFFINEANIMCMD_FRAME(0xA, 0xA, 0, 10),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596190[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xEC, 0xEC, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085961A0[] =
|
||||
{
|
||||
gUnknown_08596170,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085961A4[] =
|
||||
{
|
||||
gUnknown_08596190,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085961A8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.paletteTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.oam = &gUnknown_085249CC,
|
||||
.anims = gUnknown_08596164,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085961A0,
|
||||
.callback = sub_810DBAC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085961C0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.paletteTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.oam = &gUnknown_085249CC,
|
||||
.anims = gUnknown_08596164,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085961A0,
|
||||
.callback = sub_810DC2C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085961D8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.paletteTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gUnknown_0859616C,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085961A4,
|
||||
.callback = sub_810DCD0,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085961F0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xFFF0, 0x10, 0, 6),
|
||||
AFFINEANIMCMD_FRAME(0x10, 0xFFF0, 0, 6),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596208[] =
|
||||
{
|
||||
gUnknown_085961F0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859620C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.paletteTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.oam = &gUnknown_085249CC,
|
||||
.anims = gUnknown_08596168,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596208,
|
||||
.callback = sub_810DD50,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596224[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x9C, 0x9C, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x5, 0x5, 0, 20),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_0859623C[] =
|
||||
{
|
||||
gUnknown_08596224,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gPoisonBubbleSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.paletteTag = ANIM_TAG_POISON_BUBBLE,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gUnknown_08596164,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_0859623C,
|
||||
.callback = sub_810DDC4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gWaterBubbleSpriteTemplate =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_08524A8C,
|
||||
.anims = gUnknown_08595200,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_0859623C,
|
||||
.callback = sub_810DDC4,
|
||||
};
|
405
src/psychic.c
Normal file
405
src/psychic.c
Normal file
@ -0,0 +1,405 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_80A77C8(struct Sprite *);
|
||||
extern void sub_810F1EC(struct Sprite *);
|
||||
extern void sub_810F1EC(struct Sprite *);
|
||||
extern void sub_810F58C(struct Sprite *);
|
||||
extern void TranslateAnimSpriteToTargetMonLocation(struct Sprite *);
|
||||
extern void sub_810F634(struct Sprite *);
|
||||
extern void sub_810F6B0(struct Sprite *);
|
||||
extern void sub_810FBA8(struct Sprite *);
|
||||
extern void sub_810FDF0(struct Sprite *);
|
||||
extern void sub_80A77C8(struct Sprite *);
|
||||
extern void sub_8110240(struct Sprite *);
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859652C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFFE, 0xFFFE, -10, 120),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596544[] =
|
||||
{
|
||||
gUnknown_0859652C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596548 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPIRAL,
|
||||
.paletteTag = ANIM_TAG_SPIRAL,
|
||||
.oam = &gUnknown_08524A9C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596544,
|
||||
.callback = sub_80A77C8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596560 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GREEN_LIGHT_WALL,
|
||||
.paletteTag = ANIM_TAG_GREEN_LIGHT_WALL,
|
||||
.oam = &gUnknown_08524A3C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F1EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596578 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BLUE_LIGHT_WALL,
|
||||
.paletteTag = ANIM_TAG_BLUE_LIGHT_WALL,
|
||||
.oam = &gUnknown_08524A3C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F1EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596590 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_RED_LIGHT_WALL,
|
||||
.paletteTag = ANIM_TAG_RED_LIGHT_WALL,
|
||||
.oam = &gUnknown_08524A3C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F1EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085965A8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GRAY_LIGHT_WALL,
|
||||
.paletteTag = ANIM_TAG_GRAY_LIGHT_WALL,
|
||||
.oam = &gUnknown_08524A3C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F1EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085965C0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ORANGE_LIGHT_WALL,
|
||||
.paletteTag = ANIM_TAG_ORANGE_LIGHT_WALL,
|
||||
.oam = &gUnknown_08524A3C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F1EC,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085965D8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 3),
|
||||
ANIMCMD_FRAME(16, 3),
|
||||
ANIMCMD_FRAME(32, 3),
|
||||
ANIMCMD_FRAME(48, 3),
|
||||
ANIMCMD_FRAME(64, 3),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085965F0[] =
|
||||
{
|
||||
gUnknown_085965D8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085965F4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARKLE_4,
|
||||
.paletteTag = ANIM_TAG_SPARKLE_4,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085965F0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F58C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_0859660C[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(4, 5),
|
||||
ANIMCMD_FRAME(8, 5),
|
||||
ANIMCMD_FRAME(12, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596620[] =
|
||||
{
|
||||
gUnknown_0859660C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596624 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SPARKLE_3,
|
||||
.paletteTag = ANIM_TAG_SPARKLE_3,
|
||||
.oam = &gUnknown_0852490C,
|
||||
.anims = gUnknown_08596620,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F58C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859663C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GOLD_RING,
|
||||
.paletteTag = ANIM_TAG_GOLD_RING,
|
||||
.oam = &gUnknown_08524954,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = TranslateAnimSpriteToTargetMonLocation,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596654[] =
|
||||
{
|
||||
ANIMCMD_FRAME(8, 60, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(16, 5, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(8, 5, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(0, 5, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(8, 22, .hFlip = TRUE),
|
||||
ANIMCMD_LOOP(0),
|
||||
ANIMCMD_FRAME(16, 5, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(8, 5, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(0, 5, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(8, 5, .hFlip = TRUE),
|
||||
ANIMCMD_LOOP(1),
|
||||
ANIMCMD_FRAME(8, 22, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(24, 3, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(32, 3, .hFlip = TRUE),
|
||||
ANIMCMD_FRAME(40, 22, .hFlip = TRUE),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596694[] =
|
||||
{
|
||||
ANIMCMD_FRAME(8, 60),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(8, 5),
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(8, 22),
|
||||
ANIMCMD_LOOP(0),
|
||||
ANIMCMD_FRAME(16, 5),
|
||||
ANIMCMD_FRAME(8, 5),
|
||||
ANIMCMD_FRAME(0, 5),
|
||||
ANIMCMD_FRAME(8, 5),
|
||||
ANIMCMD_LOOP(1),
|
||||
ANIMCMD_FRAME(8, 22),
|
||||
ANIMCMD_FRAME(24, 3),
|
||||
ANIMCMD_FRAME(32, 3),
|
||||
ANIMCMD_FRAME(40, 22),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085966D4[] =
|
||||
{
|
||||
gUnknown_08596654,
|
||||
gUnknown_08596694,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085966DC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BENT_SPOON,
|
||||
.paletteTag = ANIM_TAG_BENT_SPOON,
|
||||
.oam = &gUnknown_08524954,
|
||||
.anims = gUnknown_085966D4,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F634,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085966F4[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 6),
|
||||
ANIMCMD_FRAME(16, 6),
|
||||
ANIMCMD_FRAME(32, 6),
|
||||
ANIMCMD_FRAME(48, 6),
|
||||
ANIMCMD_FRAME(64, 6),
|
||||
ANIMCMD_FRAME(80, 6),
|
||||
ANIMCMD_FRAME(96, 18),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596714[] =
|
||||
{
|
||||
gUnknown_085966F4,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596718[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0, 0, 4, 4),
|
||||
AFFINEANIMCMD_FRAME(0, 0, -4, 8),
|
||||
AFFINEANIMCMD_FRAME(0, 0, 4, 4),
|
||||
AFFINEANIMCMD_LOOP(2),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596740[] =
|
||||
{
|
||||
gUnknown_08596718,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596744 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_AMNESIA,
|
||||
.paletteTag = ANIM_TAG_AMNESIA,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596714,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810F6B0,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859675C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(-8, 10, 0, 16),
|
||||
AFFINEANIMCMD_FRAME(18, -18, 0, 16),
|
||||
AFFINEANIMCMD_FRAME(-20, 16, 0, 8),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859677C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(64, -4, 0, 20),
|
||||
AFFINEANIMCMD_FRAME(0, 0, 0, -56),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596794 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_HOLLOW_ORB,
|
||||
.paletteTag = ANIM_TAG_HOLLOW_ORB,
|
||||
.oam = &gUnknown_08524A2C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = SpriteCallbackDummy,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085967AC =
|
||||
{
|
||||
.tileTag = 10250,
|
||||
.paletteTag = 10250,
|
||||
.oam = &gUnknown_0852491C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810FBA8,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085967C4[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 8),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 8),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085967DC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xF0, 0xF0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 6),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 8),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 2),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596804[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xD0, 0xD0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 4),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 8),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 4),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859682C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xB0, 0xB0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 2),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 8),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 6),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596854[] =
|
||||
{
|
||||
gUnknown_085967C4,
|
||||
gUnknown_085967DC,
|
||||
gUnknown_08596804,
|
||||
gUnknown_0859682C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596864 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BLUEGREEN_ORB,
|
||||
.paletteTag = ANIM_TAG_BLUEGREEN_ORB,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596854,
|
||||
.callback = sub_810FDF0,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_0859687C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x20, 0x20, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x4, 0x4, 0, 120),
|
||||
AFFINEANIMCMD_END_ALT(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596894[] =
|
||||
{
|
||||
gUnknown_0859687C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596898 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WHITE_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_WHITE_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524AFC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596894,
|
||||
.callback = sub_80A77C8,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085968B0[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x20, 0x20, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x10, 0, 17),
|
||||
AFFINEANIMCMD_LOOP(0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 10),
|
||||
AFFINEANIMCMD_FRAME(0x8, 0x8, 0, 10),
|
||||
AFFINEANIMCMD_LOOP(4),
|
||||
AFFINEANIMCMD_LOOP(0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF0, 0xFFF0, 0, 5),
|
||||
AFFINEANIMCMD_FRAME(0x10, 0x10, 0, 5),
|
||||
AFFINEANIMCMD_LOOP(7),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596908[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xFFEC, 0x18, 0, 15),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596918[] =
|
||||
{
|
||||
gUnknown_085968B0,
|
||||
gUnknown_08596908,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596920 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.paletteTag = ANIM_TAG_CIRCLE_OF_LIGHT,
|
||||
.oam = &gUnknown_08524AFC,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596918,
|
||||
.callback = sub_8110240,
|
||||
};
|
293
src/rock.c
Normal file
293
src/rock.c
Normal file
@ -0,0 +1,293 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_81109F0(struct Sprite *);
|
||||
extern void sub_8110AB4(struct Sprite *);
|
||||
extern void sub_8110B38(struct Sprite *);
|
||||
extern void sub_8110E4C(struct Sprite *);
|
||||
extern void sub_8110F30(struct Sprite *);
|
||||
extern void sub_811131C(struct Sprite *);
|
||||
extern void sub_8111388(struct Sprite *);
|
||||
extern void sub_8111418(struct Sprite *);
|
||||
extern void sub_8111444(struct Sprite *);
|
||||
extern void sub_80FF268(struct Sprite *);
|
||||
extern void sub_80A8EE4(struct Sprite *);
|
||||
|
||||
extern const union AnimCmd *const gUnknown_085950E0[];
|
||||
extern const union AnimCmd *const gUnknown_085954D0[];
|
||||
|
||||
const union AnimCmd gUnknown_08596AE0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(32, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596AE8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(48, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596AF0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(64, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596AF8[] =
|
||||
{
|
||||
gUnknown_08596AE0,
|
||||
gUnknown_08596AE8,
|
||||
gUnknown_08596AF0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596B04 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596AF8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81109F0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596B1C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596AF8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110AB4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596B34 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_MUD_SAND,
|
||||
.paletteTag = ANIM_TAG_MUD_SAND,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110B38,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596B4C[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xC0, 0xC0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x2, 0xFFFD, 0, 5),
|
||||
AFFINEANIMCMD_FRAME(0xFFFE, 0x3, 0, 5),
|
||||
AFFINEANIMCMD_JUMP(1),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596B6C[] =
|
||||
{
|
||||
gUnknown_08596B4C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596B70 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WATER_ORB,
|
||||
.paletteTag = ANIM_TAG_WATER_ORB,
|
||||
.oam = &gUnknown_08524A8C,
|
||||
.anims = gUnknown_085950E0,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596B6C,
|
||||
.callback = sub_8110B38,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596B88 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_085954D0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110B38,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8596BA0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_FLYING_DIRT,
|
||||
.paletteTag = ANIM_TAG_FLYING_DIRT,
|
||||
.oam = &gUnknown_08524934,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110E4C,
|
||||
};
|
||||
|
||||
const struct Subsprite gUnknown_08596BB8[] =
|
||||
{
|
||||
{.x = -16, .y = 0, .shape = ST_OAM_H_RECTANGLE, .size = 2, .tileOffset = 0, .priority = 1},
|
||||
{.x = 16, .y = 0, .shape = ST_OAM_H_RECTANGLE, .size = 2, .tileOffset = 8, .priority = 1},
|
||||
};
|
||||
|
||||
const struct SubspriteTable gUnknown_08596BC0[] =
|
||||
{
|
||||
{ARRAY_COUNT(gUnknown_08596BB8), gUnknown_08596BB8},
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596BC8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596BD0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596BD8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(32, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596BE0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(48, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596BE8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(64, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08596BF0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(80, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596BF8[] =
|
||||
{
|
||||
gUnknown_08596BC8,
|
||||
gUnknown_08596BD0,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596C00[] =
|
||||
{
|
||||
gUnknown_08596BD8,
|
||||
gUnknown_08596BE0,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08596C08[] =
|
||||
{
|
||||
gUnknown_08596BE8,
|
||||
gUnknown_08596BF0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596C10 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596BF8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8110F30,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596C28 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_MUD_SAND,
|
||||
.paletteTag = ANIM_TAG_MUD_SAND,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_811131C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596C40 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_811131C,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596C58 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596BF8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8111388,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596C70[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, -5, 5),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08596C80[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 5, 5),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08596C90[] =
|
||||
{
|
||||
gUnknown_08596C70,
|
||||
gUnknown_08596C80,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596C98 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gUnknown_08596BF8,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596C90,
|
||||
.callback = sub_8111418,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596CB0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gUnknown_08596BF8,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596C90,
|
||||
.callback = sub_8111444,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596CC8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08596C08,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596C90,
|
||||
.callback = sub_80FF268,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08596CE0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ROCKS,
|
||||
.paletteTag = ANIM_TAG_ROCKS,
|
||||
.oam = &gUnknown_08524974,
|
||||
.anims = gUnknown_08596C00,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596C90,
|
||||
.callback = sub_80A8EE4,
|
||||
};
|
442
src/water.c
Normal file
442
src/water.c
Normal file
@ -0,0 +1,442 @@
|
||||
#include "global.h"
|
||||
#include "battle_anim.h"
|
||||
#include "constants/rgb.h"
|
||||
|
||||
extern void sub_810721C(struct Sprite *);
|
||||
extern void sub_8107260(struct Sprite *);
|
||||
extern void sub_810744C(struct Sprite *);
|
||||
extern void sub_81075EC(struct Sprite *);
|
||||
extern void sub_8107730(struct Sprite *);
|
||||
extern void sub_81077C0(struct Sprite *);
|
||||
extern void sub_80A78AC(struct Sprite *);
|
||||
extern void sub_8107894(struct Sprite *);
|
||||
extern void sub_81078D0(struct Sprite *);
|
||||
extern void sub_8108034(struct Sprite *);
|
||||
extern void sub_810851C(struct Sprite *);
|
||||
extern void sub_8108BE0(struct Sprite *);
|
||||
extern void sub_8108C54(struct Sprite *);
|
||||
extern void sub_80A8EE4(struct Sprite *);
|
||||
|
||||
extern const union AffineAnimCmd *const gUnknown_08593420[];
|
||||
extern const union AffineAnimCmd *const gUnknown_08596208[];
|
||||
extern const union AnimCmd *const gUnknown_08595AB8[];
|
||||
|
||||
// what is this?
|
||||
const u8 gUnknown_8593C80[] = INCBIN_U8("graphics/unknown/unknown_593C80.4bpp");
|
||||
const u8 gUnknown_8593FFC[] = INCBIN_U8("graphics/unknown/unknown_593FFC.bin");
|
||||
|
||||
const union AnimCmd gUnknown_08594FFC[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 2),
|
||||
ANIMCMD_FRAME(8, 2),
|
||||
ANIMCMD_FRAME(16, 2),
|
||||
ANIMCMD_FRAME(24, 6),
|
||||
ANIMCMD_FRAME(32, 2),
|
||||
ANIMCMD_FRAME(40, 2),
|
||||
ANIMCMD_FRAME(48, 2),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_0859501C[] =
|
||||
{
|
||||
gUnknown_08594FFC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595020 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_RAIN_DROPS,
|
||||
.paletteTag = ANIM_TAG_RAIN_DROPS,
|
||||
.oam = &gUnknown_08524954,
|
||||
.anims = gUnknown_0859501C,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810721C,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595038[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xFFFB, 0xFFFB, 0, 10),
|
||||
AFFINEANIMCMD_FRAME(0x5, 0x5, 0, 10),
|
||||
AFFINEANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_08595050[] =
|
||||
{
|
||||
gUnknown_08595038,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595054[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_FRAME(4, 5),
|
||||
ANIMCMD_FRAME(8, 5),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595064[] =
|
||||
{
|
||||
gUnknown_08595054,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gBattleAnimSpriteTemplate_8595068 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BUBBLE,
|
||||
.paletteTag = ANIM_TAG_BUBBLE,
|
||||
.oam = &gUnknown_08524A8C,
|
||||
.anims = gUnknown_08595064,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08595050,
|
||||
.callback = sub_8107260,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595080[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595088[] =
|
||||
{
|
||||
ANIMCMD_FRAME(4, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595090[] =
|
||||
{
|
||||
gUnknown_08595080,
|
||||
gUnknown_08595088,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595098[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 1),
|
||||
AFFINEANIMCMD_FRAME(0x60, 0x60, 0, 1),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085950B0[] =
|
||||
{
|
||||
gUnknown_08595098,
|
||||
};
|
||||
|
||||
// Multi-colored rings used in Aurora Beam.
|
||||
const struct SpriteTemplate gUnknown_085950B4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_RAINBOW_RINGS,
|
||||
.paletteTag = ANIM_TAG_RAINBOW_RINGS,
|
||||
.oam = &gUnknown_08524A04,
|
||||
.anims = gUnknown_08595090,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085950B0,
|
||||
.callback = sub_810744C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085950CC[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_FRAME(4, 1),
|
||||
ANIMCMD_FRAME(8, 1),
|
||||
ANIMCMD_FRAME(12, 1),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085950E0[] =
|
||||
{
|
||||
gUnknown_085950CC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085950E4 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WATER_ORB,
|
||||
.paletteTag = ANIM_TAG_WATER_ORB,
|
||||
.oam = &gUnknown_08524A2C,
|
||||
.anims = gUnknown_085950E0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81075EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085950FC =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BROWN_ORB,
|
||||
.paletteTag = ANIM_TAG_BROWN_ORB,
|
||||
.oam = &gUnknown_08524A2C,
|
||||
.anims = gUnknown_085950E0,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81075EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595114 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GLOWY_RED_ORB,
|
||||
.paletteTag = ANIM_TAG_GLOWY_RED_ORB,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81075EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_0859512C =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GLOWY_GREEN_ORB,
|
||||
.paletteTag = ANIM_TAG_GLOWY_GREEN_ORB,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81075EC,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595144[] =
|
||||
{
|
||||
ANIMCMD_FRAME(16, 2),
|
||||
ANIMCMD_FRAME(32, 2),
|
||||
ANIMCMD_FRAME(48, 2),
|
||||
ANIMCMD_JUMP(0),
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595154[] =
|
||||
{
|
||||
gUnknown_08595144,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595158 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_EMBER,
|
||||
.paletteTag = ANIM_TAG_SMALL_EMBER,
|
||||
.oam = &gUnknown_08524914,
|
||||
.anims = gUnknown_08595154,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81075EC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595170 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_BLUE_RING,
|
||||
.paletteTag = ANIM_TAG_BLUE_RING,
|
||||
.oam = &gUnknown_08524A14,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08593420,
|
||||
.callback = sub_81075EC,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_08595188[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x3, 0x3, 10, 50),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 10),
|
||||
AFFINEANIMCMD_FRAME(0xFFEC, 0xFFEC, -10, 20),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085951A8[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x150, 0x150, 0, 0),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085951B8[] =
|
||||
{
|
||||
gUnknown_08595188,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085951BC[] =
|
||||
{
|
||||
gUnknown_085951A8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085951C0 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WATER_ORB,
|
||||
.paletteTag = ANIM_TAG_WATER_ORB,
|
||||
.oam = &gUnknown_08524AEC,
|
||||
.anims = gUnknown_085950E0,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085951B8,
|
||||
.callback = sub_8107730,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085951D8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_WATER_ORB,
|
||||
.paletteTag = ANIM_TAG_WATER_ORB,
|
||||
.oam = &gUnknown_08524AEC,
|
||||
.anims = gUnknown_085950E0,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085951BC,
|
||||
.callback = sub_81077C0,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085951F0[] =
|
||||
{
|
||||
ANIMCMD_FRAME(0, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_085951F8[] =
|
||||
{
|
||||
ANIMCMD_FRAME(4, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595200[] =
|
||||
{
|
||||
gUnknown_085951F0,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595204[] =
|
||||
{
|
||||
gUnknown_085951F8,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595208 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_08524A2C,
|
||||
.anims = gUnknown_08595200,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_80A78AC,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595220 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_08524AEC,
|
||||
.anims = gUnknown_08595204,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_08596208,
|
||||
.callback = sub_8107894,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595238 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.paletteTag = ANIM_TAG_ICE_CRYSTALS,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gUnknown_08595AB8,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_81078D0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595250 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8108034,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595268 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_GLOWY_BLUE_ORB,
|
||||
.paletteTag = ANIM_TAG_GLOWY_BLUE_ORB,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gDummySpriteAnimTable,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_810851C,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595280[] =
|
||||
{
|
||||
ANIMCMD_FRAME(8, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595288[] =
|
||||
{
|
||||
ANIMCMD_FRAME(9, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd gUnknown_08595290[] =
|
||||
{
|
||||
ANIMCMD_FRAME(4, 1),
|
||||
ANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_08595298[] =
|
||||
{
|
||||
gUnknown_08595280,
|
||||
gUnknown_08595288,
|
||||
};
|
||||
|
||||
const union AnimCmd *const gUnknown_085952A0[] =
|
||||
{
|
||||
gUnknown_08595290,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085952A4[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x100, 0x100, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF6, 0xFFF6, 0, 15),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085952BC[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0xE0, 0xE0, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0xFFF8, 0xFFF8, 0, 15),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd gUnknown_085952D4[] =
|
||||
{
|
||||
AFFINEANIMCMD_FRAME(0x150, 0x150, 0, 0),
|
||||
AFFINEANIMCMD_FRAME(0x0, 0x0, 0, 15),
|
||||
AFFINEANIMCMD_END,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085952EC[] =
|
||||
{
|
||||
gUnknown_085952A4,
|
||||
gUnknown_085952BC,
|
||||
};
|
||||
|
||||
const union AffineAnimCmd *const gUnknown_085952F4[] =
|
||||
{
|
||||
gUnknown_085952D4,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_085952F8 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_08524904,
|
||||
.anims = gUnknown_08595298,
|
||||
.images = NULL,
|
||||
.affineAnims = gDummySpriteAffineAnimTable,
|
||||
.callback = sub_8108BE0,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595310 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_08524964,
|
||||
.anims = gUnknown_08595298,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085952EC,
|
||||
.callback = sub_8108C54,
|
||||
};
|
||||
|
||||
const struct SpriteTemplate gUnknown_08595328 =
|
||||
{
|
||||
.tileTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.paletteTag = ANIM_TAG_SMALL_BUBBLES,
|
||||
.oam = &gUnknown_0852496C,
|
||||
.anims = gUnknown_085952A0,
|
||||
.images = NULL,
|
||||
.affineAnims = gUnknown_085952F4,
|
||||
.callback = sub_80A8EE4,
|
||||
};
|
Loading…
Reference in New Issue
Block a user