2013-12-18 04:54:25 +00:00
|
|
|
; Objects used in battle animations.
|
|
|
|
|
2015-12-04 19:33:29 +00:00
|
|
|
QueueBattleAnimation: ; cc9a1 (33:49a1)
|
|
|
|
ld hl, ActiveAnimObjects
|
|
|
|
ld e, 10
|
|
|
|
.loop
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hl]
|
|
|
|
and a
|
2015-12-04 19:33:29 +00:00
|
|
|
jr z, .done
|
2015-12-23 19:00:29 +00:00
|
|
|
ld bc, BATTLEANIMSTRUCT_LENGTH
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
dec e
|
2015-12-04 19:33:29 +00:00
|
|
|
jr nz, .loop
|
2013-12-18 04:54:25 +00:00
|
|
|
scf
|
|
|
|
ret
|
2015-12-04 19:33:29 +00:00
|
|
|
|
|
|
|
.done
|
2013-12-18 04:54:25 +00:00
|
|
|
ld c, l
|
|
|
|
ld b, h
|
2015-12-23 19:00:29 +00:00
|
|
|
ld hl, wNumActiveBattleAnims
|
2013-12-18 04:54:25 +00:00
|
|
|
inc [hl]
|
2015-12-23 19:00:29 +00:00
|
|
|
call InitBattleAnimation
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-23 19:00:29 +00:00
|
|
|
DeinitBattleAnimation: ; cc9bd
|
|
|
|
ld hl, BATTLEANIMSTRUCT_INDEX
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], $0
|
|
|
|
ret
|
|
|
|
|
2015-12-04 19:33:29 +00:00
|
|
|
; cc9c4
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 19:00:29 +00:00
|
|
|
InitBattleAnimation: ; cc9c4 (33:49c4)
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTemp0]
|
2013-12-18 04:54:25 +00:00
|
|
|
ld e, a
|
2014-05-05 07:30:21 +00:00
|
|
|
ld d, 0
|
2014-05-05 20:28:20 +00:00
|
|
|
ld hl, BattleAnimObjects
|
2015-07-21 02:18:18 +00:00
|
|
|
rept 6
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, de
|
2015-07-21 02:18:18 +00:00
|
|
|
endr
|
2013-12-18 04:54:25 +00:00
|
|
|
ld e, l
|
|
|
|
ld d, h
|
2015-12-23 19:00:29 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_INDEX
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
2015-12-23 19:00:29 +00:00
|
|
|
ld a, [wNumActiveBattleAnims]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [hli], a ; Index
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [de]
|
|
|
|
inc de
|
2015-12-23 22:10:50 +00:00
|
|
|
ld [hli], a ; 01
|
|
|
|
ld a, [de]
|
|
|
|
inc de
|
|
|
|
ld [hli], a ; 02
|
|
|
|
ld a, [de]
|
|
|
|
inc de
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [hli], a ; Frameset ID
|
2015-12-23 22:10:50 +00:00
|
|
|
ld a, [de]
|
|
|
|
inc de
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [hli], a ; Function
|
2015-12-23 22:10:50 +00:00
|
|
|
ld a, [de]
|
|
|
|
inc de
|
|
|
|
ld [hli], a ; 05
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [de]
|
2015-12-23 22:10:50 +00:00
|
|
|
call GetBattleAnimTileOffset
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [hli], a ; Tile ID
|
|
|
|
ld a, [wBattleAnimTemp1]
|
|
|
|
ld [hli], a ; X Coord
|
|
|
|
ld a, [wBattleAnimTemp2]
|
|
|
|
ld [hli], a ; Y Coord
|
2013-12-18 04:54:25 +00:00
|
|
|
xor a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [hli], a ; X Offset
|
|
|
|
ld [hli], a ; Y Offset
|
|
|
|
ld a, [wBattleAnimTemp3]
|
2015-12-23 22:10:50 +00:00
|
|
|
ld [hli], a ; 0b
|
2013-12-18 04:54:25 +00:00
|
|
|
xor a
|
2015-12-23 22:10:50 +00:00
|
|
|
ld [hli], a ; 0c
|
2013-12-18 04:54:25 +00:00
|
|
|
dec a
|
2015-12-23 22:10:50 +00:00
|
|
|
ld [hli], a ; 0d
|
2013-12-18 04:54:25 +00:00
|
|
|
xor a
|
2015-12-23 22:10:50 +00:00
|
|
|
ld [hli], a ; 0e
|
|
|
|
ld [hli], a ; 0f
|
|
|
|
ld [hl], a ; 10
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
BattleAnimOAMUpdate: ; cca09
|
2015-12-24 03:51:50 +00:00
|
|
|
call InitBattleAnimBuffer
|
2015-12-23 22:10:50 +00:00
|
|
|
call GetBattleAnimFrame
|
2015-12-04 19:33:29 +00:00
|
|
|
cp -3
|
2015-12-23 22:10:50 +00:00
|
|
|
jp z, .exit_no_carry
|
2015-12-04 19:33:29 +00:00
|
|
|
cp -4
|
2015-12-23 22:10:50 +00:00
|
|
|
jp z, .delete_exit
|
2013-12-18 04:54:25 +00:00
|
|
|
push af
|
2015-12-24 03:51:50 +00:00
|
|
|
ld hl, wBattleAnimTempOAMFlags
|
|
|
|
ld a, [wBattleAnimTemp7]
|
2013-12-18 04:54:25 +00:00
|
|
|
xor [hl]
|
|
|
|
and $e0
|
|
|
|
ld [hl], a
|
|
|
|
pop af
|
|
|
|
push bc
|
2015-12-23 22:10:50 +00:00
|
|
|
call GetBattleAnimOAMPointer
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempTileID]
|
2013-12-18 04:54:25 +00:00
|
|
|
add [hl]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempTileID], a
|
2013-12-18 04:54:25 +00:00
|
|
|
inc hl
|
|
|
|
ld a, [hli]
|
|
|
|
ld c, a
|
|
|
|
ld a, [hli]
|
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
2015-12-24 01:46:23 +00:00
|
|
|
ld a, [wBattleAnimOAMPointerLo]
|
2013-12-18 04:54:25 +00:00
|
|
|
ld e, a
|
2015-12-23 22:10:50 +00:00
|
|
|
ld d, Sprites / $100
|
|
|
|
.loop
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempYCoord]
|
2013-12-18 04:54:25 +00:00
|
|
|
ld b, a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempYOffset]
|
2013-12-18 04:54:25 +00:00
|
|
|
add b
|
|
|
|
ld b, a
|
|
|
|
push hl
|
|
|
|
ld a, [hl]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld hl, wBattleAnimTempOAMFlags
|
2013-12-18 04:54:25 +00:00
|
|
|
bit 6, [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
jr z, .no_yflip
|
2013-12-18 04:54:25 +00:00
|
|
|
add $8
|
|
|
|
xor $ff
|
|
|
|
inc a
|
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.no_yflip
|
2013-12-18 04:54:25 +00:00
|
|
|
pop hl
|
|
|
|
add b
|
|
|
|
ld [de], a
|
|
|
|
inc hl
|
|
|
|
inc de
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempXCoord]
|
2013-12-18 04:54:25 +00:00
|
|
|
ld b, a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempXOffset]
|
2013-12-18 04:54:25 +00:00
|
|
|
add b
|
|
|
|
ld b, a
|
|
|
|
push hl
|
|
|
|
ld a, [hl]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld hl, wBattleAnimTempOAMFlags
|
2013-12-18 04:54:25 +00:00
|
|
|
bit 5, [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
jr z, .no_xflip
|
2013-12-18 04:54:25 +00:00
|
|
|
add $8
|
|
|
|
xor $ff
|
|
|
|
inc a
|
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.no_xflip
|
2013-12-18 04:54:25 +00:00
|
|
|
pop hl
|
|
|
|
add b
|
|
|
|
ld [de], a
|
|
|
|
inc hl
|
|
|
|
inc de
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempTileID]
|
2013-12-18 04:54:25 +00:00
|
|
|
add $31
|
|
|
|
add [hl]
|
|
|
|
ld [de], a
|
|
|
|
inc hl
|
|
|
|
inc de
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempOAMFlags]
|
2013-12-18 04:54:25 +00:00
|
|
|
ld b, a
|
|
|
|
ld a, [hl]
|
|
|
|
xor b
|
|
|
|
and $e0
|
|
|
|
ld b, a
|
|
|
|
ld a, [hl]
|
|
|
|
and $10
|
|
|
|
or b
|
|
|
|
ld b, a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTempPalette]
|
2013-12-18 04:54:25 +00:00
|
|
|
and $f
|
|
|
|
or b
|
|
|
|
ld [de], a
|
|
|
|
inc hl
|
|
|
|
inc de
|
|
|
|
ld a, e
|
2015-12-24 01:46:23 +00:00
|
|
|
ld [wBattleAnimOAMPointerLo], a
|
2013-12-18 04:54:25 +00:00
|
|
|
cp $a0
|
2015-12-23 22:10:50 +00:00
|
|
|
jr nc, .exit_set_carry
|
2013-12-18 04:54:25 +00:00
|
|
|
dec c
|
2015-12-23 22:10:50 +00:00
|
|
|
jr nz, .loop
|
2013-12-18 04:54:25 +00:00
|
|
|
pop bc
|
2015-12-23 22:10:50 +00:00
|
|
|
jr .exit_no_carry
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.delete_exit
|
2015-12-23 19:00:29 +00:00
|
|
|
call DeinitBattleAnimation
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.exit_no_carry
|
2013-12-18 04:54:25 +00:00
|
|
|
and a
|
|
|
|
ret
|
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.exit_set_carry
|
2013-12-18 04:54:25 +00:00
|
|
|
pop bc
|
|
|
|
scf
|
|
|
|
ret
|
2015-12-04 19:33:29 +00:00
|
|
|
|
2013-12-18 04:54:25 +00:00
|
|
|
; ccaaa
|
|
|
|
|
2015-12-24 03:51:50 +00:00
|
|
|
InitBattleAnimBuffer: ; ccaaa
|
2015-12-23 19:00:29 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_01
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
2015-12-24 03:51:50 +00:00
|
|
|
and %10000000
|
|
|
|
ld [wBattleAnimTempOAMFlags], a
|
2013-12-18 04:54:25 +00:00
|
|
|
xor a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTemp7], a
|
|
|
|
ld hl, BATTLEANIMSTRUCT_PALETTE
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempPalette], a
|
2015-12-23 19:00:29 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_02
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTemp1], a
|
2015-12-23 22:10:50 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_TILEID
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hli]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempTileID], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempXCoord], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempYCoord], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempXOffset], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempYOffset], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hBattleTurn]
|
|
|
|
and a
|
|
|
|
ret z
|
2015-12-23 19:00:29 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_01
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempOAMFlags], a
|
2013-12-18 04:54:25 +00:00
|
|
|
bit 0, [hl]
|
|
|
|
ret z
|
2015-12-24 03:51:50 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_XCOORD
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, (-10 * 8) + 4
|
2013-12-18 04:54:25 +00:00
|
|
|
sub d
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempXCoord], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
|
|
|
ld d, a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, [wBattleAnimTemp1]
|
2013-12-18 04:54:25 +00:00
|
|
|
cp $ff
|
2015-12-23 22:10:50 +00:00
|
|
|
jr nz, .check_kinesis_softboiled_milkdrink
|
2015-12-24 03:51:50 +00:00
|
|
|
ld a, 5 * 8
|
2013-12-18 04:54:25 +00:00
|
|
|
add d
|
2015-12-23 22:10:50 +00:00
|
|
|
jr .done
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.check_kinesis_softboiled_milkdrink
|
2013-12-18 04:54:25 +00:00
|
|
|
sub d
|
|
|
|
push af
|
|
|
|
ld a, [FXAnimIDHi]
|
|
|
|
or a
|
2015-12-23 22:10:50 +00:00
|
|
|
jr nz, .no_sub
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [FXAnimIDLo]
|
2015-12-23 22:10:50 +00:00
|
|
|
cp KINESIS
|
|
|
|
jr z, .kinesis
|
|
|
|
cp SOFTBOILED
|
|
|
|
jr z, .softboiled
|
|
|
|
cp MILK_DRINK
|
|
|
|
jr nz, .no_sub
|
|
|
|
.kinesis
|
|
|
|
.softboiled
|
|
|
|
.milk_drink
|
2013-12-18 04:54:25 +00:00
|
|
|
pop af
|
2015-12-24 03:51:50 +00:00
|
|
|
sub 1 * 8
|
2015-12-23 22:10:50 +00:00
|
|
|
jr .done
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.no_sub
|
2013-12-18 04:54:25 +00:00
|
|
|
pop af
|
2015-12-23 22:10:50 +00:00
|
|
|
.done
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempYCoord], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
|
|
|
xor $ff
|
|
|
|
inc a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTempXOffset], a
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-04 19:33:29 +00:00
|
|
|
; ccb31
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
GetBattleAnimTileOffset: ; ccb31 (33:4b31)
|
2013-12-18 04:54:25 +00:00
|
|
|
push hl
|
|
|
|
push bc
|
2015-12-23 19:00:29 +00:00
|
|
|
ld hl, wBattleAnimTileDict
|
2013-12-18 04:54:25 +00:00
|
|
|
ld b, a
|
2015-12-23 19:00:29 +00:00
|
|
|
ld c, 10 / 2
|
|
|
|
.loop
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
|
|
|
cp b
|
2015-12-23 19:00:29 +00:00
|
|
|
jr z, .load
|
2013-12-18 04:54:25 +00:00
|
|
|
inc hl
|
|
|
|
dec c
|
2015-12-23 19:00:29 +00:00
|
|
|
jr nz, .loop
|
2013-12-18 04:54:25 +00:00
|
|
|
xor a
|
2015-12-23 19:00:29 +00:00
|
|
|
jr .done
|
2015-12-04 19:33:29 +00:00
|
|
|
|
2015-12-23 19:00:29 +00:00
|
|
|
.load
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hl]
|
2015-12-23 19:00:29 +00:00
|
|
|
.done
|
2013-12-18 04:54:25 +00:00
|
|
|
pop bc
|
|
|
|
pop hl
|
|
|
|
ret
|
|
|
|
|
2015-12-04 19:33:29 +00:00
|
|
|
_ExecuteBGEffects: ; ccb48
|
|
|
|
callab ExecuteBGEffects
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-04 19:33:29 +00:00
|
|
|
; ccb4f
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-04 19:33:29 +00:00
|
|
|
_QueueBGEffect: ; ccb4f (33:4b4f)
|
|
|
|
callab QueueBGEffect
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
2015-12-04 19:33:29 +00:00
|
|
|
|
2013-12-18 04:54:25 +00:00
|
|
|
; ccb56 (33:4b56)
|
|
|
|
|
2014-05-05 20:28:20 +00:00
|
|
|
BattleAnimObjects: ; ccb56
|
2015-12-23 22:10:50 +00:00
|
|
|
battleanimobj: MACRO
|
2015-12-24 03:51:50 +00:00
|
|
|
; ??, ??, frameset, function, ??, tile offset
|
2015-12-23 22:10:50 +00:00
|
|
|
db \1, \2, \3, \4, \5, \6
|
|
|
|
endm
|
|
|
|
|
2015-12-24 03:51:50 +00:00
|
|
|
battleanimobj $01, $ff, $00, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_00
|
|
|
|
battleanimobj $01, $ff, $01, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_01
|
|
|
|
battleanimobj $01, $ff, $02, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_02
|
|
|
|
battleanimobj $01, $90, $00, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_03
|
|
|
|
battleanimobj $01, $90, $01, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_04
|
|
|
|
battleanimobj $01, $90, $02, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_05
|
|
|
|
battleanimobj $01, $ff, $03, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_06
|
|
|
|
battleanimobj $01, $ff, $04, BATTLEANIMFUNC_1B, $02, $01 ; ANIM_OBJ_07
|
|
|
|
battleanimobj $01, $ff, $05, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_08
|
|
|
|
battleanimobj $01, $ff, $06, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_09
|
|
|
|
battleanimobj $01, $90, $07, BATTLEANIMFUNC_09, $02, $01 ; ANIM_OBJ_0A
|
|
|
|
battleanimobj $01, $aa, $10, BATTLEANIMFUNC_10, $04, $03 ; ANIM_OBJ_0B
|
|
|
|
battleanimobj $01, $90, $0e, BATTLEANIMFUNC_04, $04, $03 ; ANIM_OBJ_0C
|
|
|
|
battleanimobj $01, $90, $0f, BATTLEANIMFUNC_03, $04, $03 ; ANIM_OBJ_0D
|
|
|
|
battleanimobj $01, $90, $10, BATTLEANIMFUNC_08, $04, $03 ; ANIM_OBJ_0E
|
|
|
|
battleanimobj $01, $90, $0f, BATTLEANIMFUNC_0A, $04, $03 ; ANIM_OBJ_0F
|
|
|
|
battleanimobj $01, $90, $11, BATTLEANIMFUNC_03, $04, $03 ; ANIM_OBJ_BURNED
|
|
|
|
battleanimobj $01, $90, $12, BATTLEANIMFUNC_08, $06, $0a ; ANIM_OBJ_11
|
|
|
|
battleanimobj $01, $90, $13, BATTLEANIMFUNC_00, $06, $0a ; ANIM_OBJ_12
|
|
|
|
battleanimobj $01, $90, $14, BATTLEANIMFUNC_01, $06, $0a ; ANIM_OBJ_13
|
|
|
|
battleanimobj $21, $78, $16, BATTLEANIMFUNC_0B, $05, $06 ; ANIM_OBJ_14
|
|
|
|
battleanimobj $00, $00, $09, BATTLEANIMFUNC_12, $04, $0b ; ANIM_OBJ_POKE_BALL
|
|
|
|
battleanimobj $00, $00, $09, BATTLEANIMFUNC_13, $04, $0b ; ANIM_OBJ_16
|
|
|
|
battleanimobj $01, $90, $18, BATTLEANIMFUNC_00, $04, $08 ; ANIM_OBJ_17
|
|
|
|
battleanimobj $01, $ff, $18, BATTLEANIMFUNC_00, $04, $08 ; ANIM_OBJ_18
|
|
|
|
battleanimobj $01, $90, $1d, BATTLEANIMFUNC_06, $02, $0c ; ANIM_OBJ_19
|
|
|
|
battleanimobj $01, $b4, $1f, BATTLEANIMFUNC_38, $02, $0c ; ANIM_OBJ_1A
|
|
|
|
battleanimobj $01, $90, $08, BATTLEANIMFUNC_00, $02, $07 ; ANIM_OBJ_1B
|
|
|
|
battleanimobj $01, $a0, $08, BATTLEANIMFUNC_00, $02, $07 ; ANIM_OBJ_1C
|
|
|
|
battleanimobj $01, $ff, $19, BATTLEANIMFUNC_07, $07, $09 ; ANIM_OBJ_1D
|
|
|
|
battleanimobj $01, $ff, $1a, BATTLEANIMFUNC_07, $07, $09 ; ANIM_OBJ_1E
|
|
|
|
battleanimobj $01, $b0, $1b, BATTLEANIMFUNC_36, $07, $09 ; ANIM_OBJ_1F
|
|
|
|
battleanimobj $01, $b0, $84, BATTLEANIMFUNC_36, $06, $21 ; ANIM_OBJ_20
|
|
|
|
battleanimobj $01, $90, $21, BATTLEANIMFUNC_0C, $06, $0d ; ANIM_OBJ_21
|
|
|
|
battleanimobj $00, $00, $23, BATTLEANIMFUNC_0D, $06, $0d ; ANIM_OBJ_22
|
|
|
|
battleanimobj $01, $90, $24, BATTLEANIMFUNC_0E, $02, $0e ; ANIM_OBJ_23
|
|
|
|
battleanimobj $61, $80, $27, BATTLEANIMFUNC_0F, $06, $04 ; ANIM_OBJ_24
|
|
|
|
battleanimobj $01, $b4, $2a, BATTLEANIMFUNC_00, $06, $04 ; ANIM_OBJ_25
|
|
|
|
battleanimobj $01, $40, $2b, BATTLEANIMFUNC_11, $05, $0f ; ANIM_OBJ_26
|
|
|
|
battleanimobj $61, $98, $2c, BATTLEANIMFUNC_00, $03, $10 ; ANIM_OBJ_27
|
|
|
|
battleanimobj $61, $98, $2d, BATTLEANIMFUNC_09, $03, $10 ; ANIM_OBJ_28
|
|
|
|
battleanimobj $01, $b8, $2e, BATTLEANIMFUNC_00, $06, $0a ; ANIM_OBJ_29
|
|
|
|
battleanimobj $01, $b8, $2f, BATTLEANIMFUNC_00, $06, $0a ; ANIM_OBJ_FROZEN
|
|
|
|
battleanimobj $01, $b8, $30, BATTLEANIMFUNC_14, $07, $11 ; ANIM_OBJ_2B
|
|
|
|
battleanimobj $01, $90, $21, BATTLEANIMFUNC_14, $03, $0d ; ANIM_OBJ_2C
|
|
|
|
battleanimobj $21, $b0, $31, BATTLEANIMFUNC_00, $03, $05 ; ANIM_OBJ_2D
|
|
|
|
battleanimobj $21, $b0, $32, BATTLEANIMFUNC_00, $03, $05 ; ANIM_OBJ_2E
|
|
|
|
battleanimobj $21, $b0, $33, BATTLEANIMFUNC_00, $03, $05 ; ANIM_OBJ_2F
|
|
|
|
battleanimobj $21, $90, $34, BATTLEANIMFUNC_15, $03, $05 ; ANIM_OBJ_30
|
|
|
|
battleanimobj $21, $90, $36, BATTLEANIMFUNC_00, $03, $05 ; ANIM_OBJ_31
|
|
|
|
battleanimobj $21, $90, $37, BATTLEANIMFUNC_03, $02, $08 ; ANIM_OBJ_32
|
|
|
|
battleanimobj $21, $90, $38, BATTLEANIMFUNC_00, $03, $05 ; ANIM_OBJ_33
|
|
|
|
battleanimobj $21, $90, $39, BATTLEANIMFUNC_03, $02, $08 ; ANIM_OBJ_34
|
|
|
|
battleanimobj $21, $90, $3a, BATTLEANIMFUNC_16, $02, $02 ; ANIM_OBJ_35
|
|
|
|
battleanimobj $01, $90, $3c, BATTLEANIMFUNC_17, $02, $02 ; ANIM_OBJ_36
|
|
|
|
battleanimobj $21, $ff, $3e, BATTLEANIMFUNC_00, $02, $02 ; ANIM_OBJ_37
|
|
|
|
battleanimobj $21, $ff, $3f, BATTLEANIMFUNC_00, $02, $02 ; ANIM_OBJ_38
|
|
|
|
battleanimobj $21, $ff, $40, BATTLEANIMFUNC_00, $02, $02 ; ANIM_OBJ_39
|
|
|
|
battleanimobj $21, $ff, $41, BATTLEANIMFUNC_00, $02, $02 ; ANIM_OBJ_3A
|
|
|
|
battleanimobj $21, $ff, $42, BATTLEANIMFUNC_00, $02, $02 ; ANIM_OBJ_3B
|
|
|
|
battleanimobj $01, $88, $43, BATTLEANIMFUNC_18, $05, $12 ; ANIM_OBJ_3C
|
|
|
|
battleanimobj $01, $88, $44, BATTLEANIMFUNC_00, $05, $12 ; ANIM_OBJ_3D
|
|
|
|
battleanimobj $21, $b8, $45, BATTLEANIMFUNC_19, $02, $13 ; ANIM_OBJ_GUST
|
|
|
|
battleanimobj $21, $ff, $46, BATTLEANIMFUNC_00, $02, $14 ; ANIM_OBJ_3F
|
|
|
|
battleanimobj $21, $ff, $47, BATTLEANIMFUNC_00, $02, $14 ; ANIM_OBJ_40
|
|
|
|
battleanimobj $21, $ff, $48, BATTLEANIMFUNC_1A, $02, $14 ; ANIM_OBJ_41
|
|
|
|
battleanimobj $21, $ff, $49, BATTLEANIMFUNC_1A, $02, $14 ; ANIM_OBJ_42
|
|
|
|
battleanimobj $21, $98, $4a, BATTLEANIMFUNC_01, $02, $14 ; ANIM_OBJ_43
|
|
|
|
battleanimobj $21, $80, $4b, BATTLEANIMFUNC_00, $03, $11 ; ANIM_OBJ_44
|
|
|
|
battleanimobj $01, $88, $4c, BATTLEANIMFUNC_1C, $05, $12 ; ANIM_OBJ_45
|
|
|
|
battleanimobj $21, $b0, $4d, BATTLEANIMFUNC_1D, $02, $15 ; ANIM_OBJ_46
|
|
|
|
battleanimobj $01, $b0, $51, BATTLEANIMFUNC_1E, $03, $11 ; ANIM_OBJ_47
|
|
|
|
battleanimobj $21, $ff, $52, BATTLEANIMFUNC_1F, $05, $16 ; ANIM_OBJ_48
|
|
|
|
battleanimobj $21, $ff, $54, BATTLEANIMFUNC_1F, $05, $16 ; ANIM_OBJ_49
|
|
|
|
battleanimobj $21, $68, $56, BATTLEANIMFUNC_20, $05, $06 ; ANIM_OBJ_4A
|
|
|
|
battleanimobj $21, $90, $59, BATTLEANIMFUNC_21, $02, $0e ; ANIM_OBJ_4B
|
|
|
|
battleanimobj $21, $90, $5c, BATTLEANIMFUNC_02, $02, $17 ; ANIM_OBJ_4C
|
|
|
|
battleanimobj $01, $90, $5d, BATTLEANIMFUNC_22, $03, $11 ; ANIM_OBJ_4D
|
|
|
|
battleanimobj $61, $88, $5f, BATTLEANIMFUNC_00, $03, $10 ; ANIM_OBJ_4E
|
|
|
|
battleanimobj $61, $88, $2d, BATTLEANIMFUNC_09, $03, $10 ; ANIM_OBJ_4F
|
|
|
|
battleanimobj $21, $88, $60, BATTLEANIMFUNC_00, $03, $18 ; ANIM_OBJ_50
|
|
|
|
battleanimobj $21, $80, $60, BATTLEANIMFUNC_00, $02, $18 ; ANIM_OBJ_51
|
|
|
|
battleanimobj $21, $50, $61, BATTLEANIMFUNC_23, $03, $19 ; ANIM_OBJ_CHICK
|
|
|
|
battleanimobj $01, $80, $63, BATTLEANIMFUNC_24, $02, $19 ; ANIM_OBJ_53
|
|
|
|
battleanimobj $01, $80, $66, BATTLEANIMFUNC_25, $02, $19 ; ANIM_OBJ_54
|
|
|
|
battleanimobj $01, $50, $1c, BATTLEANIMFUNC_00, $02, $0c ; ANIM_OBJ_SKULL
|
|
|
|
battleanimobj $21, $a8, $67, BATTLEANIMFUNC_26, $07, $1a ; ANIM_OBJ_56
|
|
|
|
battleanimobj $21, $a8, $68, BATTLEANIMFUNC_00, $07, $1a ; ANIM_OBJ_57
|
|
|
|
battleanimobj $21, $90, $69, BATTLEANIMFUNC_01, $02, $1a ; ANIM_OBJ_58
|
|
|
|
battleanimobj $21, $90, $6d, BATTLEANIMFUNC_28, $03, $19 ; ANIM_OBJ_PARALYZED
|
|
|
|
battleanimobj $21, $90, $6a, BATTLEANIMFUNC_27, $02, $1b ; ANIM_OBJ_5A
|
|
|
|
battleanimobj $00, $00, $6f, BATTLEANIMFUNC_29, $02, $1c ; ANIM_OBJ_5B
|
|
|
|
battleanimobj $21, $48, $70, BATTLEANIMFUNC_29, $02, $1c ; ANIM_OBJ_5C
|
|
|
|
battleanimobj $21, $48, $6f, BATTLEANIMFUNC_29, $02, $1c ; ANIM_OBJ_5D
|
|
|
|
battleanimobj $21, $78, $6f, BATTLEANIMFUNC_2A, $02, $1c ; ANIM_OBJ_5E
|
|
|
|
battleanimobj $61, $90, $71, BATTLEANIMFUNC_2B, $02, $1d ; ANIM_OBJ_5F
|
|
|
|
battleanimobj $61, $90, $72, BATTLEANIMFUNC_2C, $02, $1d ; ANIM_OBJ_60
|
|
|
|
battleanimobj $01, $48, $73, BATTLEANIMFUNC_2D, $04, $1e ; ANIM_OBJ_61
|
|
|
|
battleanimobj $01, $90, $74, BATTLEANIMFUNC_06, $02, $15 ; ANIM_OBJ_62
|
|
|
|
battleanimobj $01, $ff, $75, BATTLEANIMFUNC_2E, $07, $19 ; ANIM_OBJ_63
|
|
|
|
battleanimobj $21, $90, $4a, BATTLEANIMFUNC_02, $02, $14 ; ANIM_OBJ_64
|
|
|
|
battleanimobj $01, $80, $30, BATTLEANIMFUNC_2F, $02, $11 ; ANIM_OBJ_65
|
|
|
|
battleanimobj $01, $78, $76, BATTLEANIMFUNC_2A, $04, $23 ; ANIM_OBJ_66
|
|
|
|
battleanimobj $01, $80, $77, BATTLEANIMFUNC_30, $02, $1f ; ANIM_OBJ_67
|
|
|
|
battleanimobj $01, $90, $77, BATTLEANIMFUNC_02, $02, $1f ; ANIM_OBJ_68
|
|
|
|
battleanimobj $01, $ff, $77, BATTLEANIMFUNC_00, $02, $1f ; ANIM_OBJ_69
|
|
|
|
battleanimobj $01, $80, $78, BATTLEANIMFUNC_08, $03, $23 ; ANIM_OBJ_6A
|
|
|
|
battleanimobj $21, $90, $79, BATTLEANIMFUNC_00, $02, $1f ; ANIM_OBJ_6B
|
|
|
|
battleanimobj $01, $ff, $7a, BATTLEANIMFUNC_31, $03, $11 ; ANIM_OBJ_6C
|
|
|
|
battleanimobj $01, $88, $7a, BATTLEANIMFUNC_31, $03, $11 ; ANIM_OBJ_6D
|
|
|
|
battleanimobj $21, $88, $7b, BATTLEANIMFUNC_32, $02, $20 ; ANIM_OBJ_6E
|
|
|
|
battleanimobj $21, $98, $7c, BATTLEANIMFUNC_00, $02, $04 ; ANIM_OBJ_6F
|
|
|
|
battleanimobj $21, $80, $7d, BATTLEANIMFUNC_00, $02, $18 ; ANIM_OBJ_70
|
|
|
|
battleanimobj $01, $80, $21, BATTLEANIMFUNC_2F, $06, $0d ; ANIM_OBJ_71
|
|
|
|
battleanimobj $01, $b0, $7e, BATTLEANIMFUNC_33, $03, $12 ; ANIM_OBJ_72
|
|
|
|
battleanimobj $01, $80, $7f, BATTLEANIMFUNC_2F, $02, $08 ; ANIM_OBJ_73
|
|
|
|
battleanimobj $21, $a0, $6f, BATTLEANIMFUNC_34, $02, $1c ; ANIM_OBJ_74
|
|
|
|
battleanimobj $21, $a0, $74, BATTLEANIMFUNC_35, $02, $15 ; ANIM_OBJ_75
|
|
|
|
battleanimobj $21, $b0, $80, BATTLEANIMFUNC_33, $02, $14 ; ANIM_OBJ_76
|
|
|
|
battleanimobj $01, $88, $81, BATTLEANIMFUNC_37, $02, $11 ; ANIM_OBJ_77
|
|
|
|
battleanimobj $01, $88, $85, BATTLEANIMFUNC_00, $02, $22 ; ANIM_OBJ_78
|
|
|
|
battleanimobj $01, $88, $86, BATTLEANIMFUNC_00, $02, $22 ; ANIM_OBJ_79
|
|
|
|
battleanimobj $01, $90, $87, BATTLEANIMFUNC_39, $02, $1f ; ANIM_OBJ_7A
|
|
|
|
battleanimobj $01, $80, $30, BATTLEANIMFUNC_3A, $03, $11 ; ANIM_OBJ_7B
|
|
|
|
battleanimobj $21, $90, $34, BATTLEANIMFUNC_00, $03, $05 ; ANIM_OBJ_7C
|
|
|
|
battleanimobj $a1, $88, $88, BATTLEANIMFUNC_3B, $06, $13 ; ANIM_OBJ_7D
|
|
|
|
battleanimobj $01, $80, $76, BATTLEANIMFUNC_25, $04, $23 ; ANIM_OBJ_HEART
|
|
|
|
battleanimobj $01, $98, $10, BATTLEANIMFUNC_34, $04, $03 ; ANIM_OBJ_7F
|
|
|
|
battleanimobj $01, $a8, $0f, BATTLEANIMFUNC_3C, $04, $03 ; ANIM_OBJ_80
|
|
|
|
battleanimobj $21, $68, $89, BATTLEANIMFUNC_29, $02, $1f ; ANIM_OBJ_81
|
|
|
|
battleanimobj $21, $b0, $8a, BATTLEANIMFUNC_00, $02, $1f ; ANIM_OBJ_82
|
|
|
|
battleanimobj $21, $80, $8c, BATTLEANIMFUNC_00, $02, $1f ; ANIM_OBJ_83
|
|
|
|
battleanimobj $21, $50, $8d, BATTLEANIMFUNC_00, $03, $1f ; ANIM_OBJ_84
|
|
|
|
battleanimobj $01, $40, $24, BATTLEANIMFUNC_40, $02, $0e ; ANIM_OBJ_85
|
|
|
|
battleanimobj $21, $a8, $8e, BATTLEANIMFUNC_41, $04, $1f ; ANIM_OBJ_86
|
|
|
|
battleanimobj $21, $88, $8f, BATTLEANIMFUNC_3E, $02, $1f ; ANIM_OBJ_87
|
|
|
|
battleanimobj $21, $88, $93, BATTLEANIMFUNC_3E, $02, $1f ; ANIM_OBJ_88
|
|
|
|
battleanimobj $21, $90, $97, BATTLEANIMFUNC_3D, $02, $1f ; ANIM_OBJ_89
|
|
|
|
battleanimobj $21, $90, $78, BATTLEANIMFUNC_3D, $03, $23 ; ANIM_OBJ_8A
|
|
|
|
battleanimobj $01, $ff, $99, BATTLEANIMFUNC_2E, $02, $19 ; ANIM_OBJ_8B
|
|
|
|
battleanimobj $21, $a0, $74, BATTLEANIMFUNC_02, $02, $15 ; ANIM_OBJ_8C
|
|
|
|
battleanimobj $21, $a0, $99, BATTLEANIMFUNC_35, $04, $19 ; ANIM_OBJ_8D
|
|
|
|
battleanimobj $21, $70, $8b, BATTLEANIMFUNC_3F, $02, $1f ; ANIM_OBJ_8E
|
|
|
|
battleanimobj $01, $90, $15, BATTLEANIMFUNC_08, $02, $0a ; ANIM_OBJ_8F
|
|
|
|
battleanimobj $01, $90, $11, BATTLEANIMFUNC_02, $04, $03 ; ANIM_OBJ_90
|
|
|
|
battleanimobj $01, $80, $7f, BATTLEANIMFUNC_42, $02, $08 ; ANIM_OBJ_91
|
|
|
|
battleanimobj $01, $90, $9a, BATTLEANIMFUNC_00, $02, $1b ; ANIM_OBJ_92
|
|
|
|
battleanimobj $21, $a0, $9b, BATTLEANIMFUNC_35, $04, $23 ; ANIM_OBJ_93
|
|
|
|
battleanimobj $21, $80, $9c, BATTLEANIMFUNC_23, $02, $25 ; ANIM_OBJ_94
|
|
|
|
battleanimobj $21, $80, $9d, BATTLEANIMFUNC_25, $02, $25 ; ANIM_OBJ_95
|
|
|
|
battleanimobj $21, $80, $9c, BATTLEANIMFUNC_00, $02, $25 ; ANIM_OBJ_96
|
|
|
|
battleanimobj $21, $80, $9e, BATTLEANIMFUNC_00, $06, $25 ; ANIM_OBJ_97
|
|
|
|
battleanimobj $61, $80, $9f, BATTLEANIMFUNC_3A, $05, $23 ; ANIM_OBJ_98
|
|
|
|
battleanimobj $21, $80, $a0, BATTLEANIMFUNC_16, $02, $23 ; ANIM_OBJ_99
|
|
|
|
battleanimobj $21, $70, $78, BATTLEANIMFUNC_43, $03, $23 ; ANIM_OBJ_9A
|
|
|
|
battleanimobj $21, $c0, $a2, BATTLEANIMFUNC_01, $02, $25 ; ANIM_OBJ_9B
|
|
|
|
battleanimobj $21, $40, $a3, BATTLEANIMFUNC_44, $03, $24 ; ANIM_OBJ_9C
|
|
|
|
battleanimobj $01, $80, $a4, BATTLEANIMFUNC_00, $02, $24 ; ANIM_OBJ_9D
|
|
|
|
battleanimobj $01, $80, $a5, BATTLEANIMFUNC_00, $03, $24 ; ANIM_OBJ_9E
|
|
|
|
battleanimobj $01, $88, $43, BATTLEANIMFUNC_45, $04, $12 ; ANIM_OBJ_9F
|
|
|
|
battleanimobj $21, $ff, $a6, BATTLEANIMFUNC_00, $02, $02 ; ANIM_OBJ_A0
|
|
|
|
battleanimobj $21, $ff, $a7, BATTLEANIMFUNC_00, $02, $02 ; ANIM_OBJ_A1
|
|
|
|
battleanimobj $21, $00, $b4, BATTLEANIMFUNC_4A, $07, $0f ; ANIM_OBJ_A2
|
|
|
|
battleanimobj $21, $90, $a8, BATTLEANIMFUNC_02, $03, $05 ; ANIM_OBJ_A3
|
|
|
|
battleanimobj $21, $40, $9c, BATTLEANIMFUNC_11, $02, $25 ; ANIM_OBJ_A4
|
|
|
|
battleanimobj $61, $90, $a9, BATTLEANIMFUNC_46, $02, $23 ; ANIM_OBJ_A5
|
|
|
|
battleanimobj $00, $00, $24, BATTLEANIMFUNC_47, $02, $0e ; ANIM_OBJ_A6
|
|
|
|
battleanimobj $01, $80, $aa, BATTLEANIMFUNC_00, $02, $24 ; ANIM_OBJ_A7
|
|
|
|
battleanimobj $21, $b8, $ab, BATTLEANIMFUNC_48, $02, $13 ; ANIM_OBJ_A8
|
|
|
|
battleanimobj $21, $90, $ac, BATTLEANIMFUNC_44, $02, $13 ; ANIM_OBJ_A9
|
|
|
|
battleanimobj $01, $a8, $05, BATTLEANIMFUNC_00, $02, $01 ; ANIM_OBJ_AA
|
|
|
|
battleanimobj $01, $90, $24, BATTLEANIMFUNC_43, $02, $0e ; ANIM_OBJ_AB
|
|
|
|
battleanimobj $01, $88, $ad, BATTLEANIMFUNC_00, $06, $17 ; ANIM_OBJ_AC
|
|
|
|
battleanimobj $01, $a8, $ae, BATTLEANIMFUNC_49, $02, $01 ; ANIM_OBJ_AD
|
|
|
|
battleanimobj $21, $90, $af, BATTLEANIMFUNC_01, $03, $11 ; ANIM_OBJ_AE
|
|
|
|
battleanimobj $21, $00, $b0, BATTLEANIMFUNC_4A, $02, $04 ; ANIM_OBJ_AF
|
|
|
|
battleanimobj $00, $00, $70, BATTLEANIMFUNC_4B, $04, $1c ; ANIM_OBJ_B0
|
|
|
|
battleanimobj $01, $88, $b1, BATTLEANIMFUNC_4C, $02, $19 ; ANIM_OBJ_B1
|
|
|
|
battleanimobj $01, $b8, $19, BATTLEANIMFUNC_4D, $07, $09 ; ANIM_OBJ_B2
|
|
|
|
battleanimobj $61, $98, $b3, BATTLEANIMFUNC_00, $03, $27 ; ANIM_OBJ_B3
|
|
|
|
battleanimobj $61, $98, $74, BATTLEANIMFUNC_04, $06, $15 ; ANIM_OBJ_B4
|
|
|
|
battleanimobj $21, $ff, $19, BATTLEANIMFUNC_4E, $07, $09 ; ANIM_OBJ_B5
|
|
|
|
battleanimobj $01, $90, $73, BATTLEANIMFUNC_08, $04, $1e ; ANIM_OBJ_FLOWER
|
|
|
|
battleanimobj $01, $ff, $89, BATTLEANIMFUNC_4F, $04, $1f ; ANIM_OBJ_COTTON
|
|
|
|
battleanimobj $00, $00, $b5, BATTLEANIMFUNC_00, $00, $28 ; ANIM_OBJ_B8
|
|
|
|
battleanimobj $00, $00, $b6, BATTLEANIMFUNC_00, $01, $29 ; ANIM_OBJ_B9
|
|
|
|
battleanimobj $00, $00, $b7, BATTLEANIMFUNC_00, $00, $28 ; ANIM_OBJ_BA
|
|
|
|
battleanimobj $00, $00, $b8, BATTLEANIMFUNC_00, $01, $29 ; ANIM_OBJ_BB
|
2014-05-05 20:28:20 +00:00
|
|
|
; ccfbe
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
INCLUDE "battle/objects/functions.asm"
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
ReinitBattleAnimFrameset: ; ce7bf (33:67bf)
|
|
|
|
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-12-23 22:10:50 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_DURATION
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
2015-12-23 22:10:50 +00:00
|
|
|
ld [hl], 0
|
|
|
|
ld hl, BATTLEANIMSTRUCT_FRAME
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
2015-12-23 22:10:50 +00:00
|
|
|
ld [hl], -1
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
GetBattleAnimFrame: ; ce7d1
|
|
|
|
.loop
|
|
|
|
ld hl, BATTLEANIMSTRUCT_DURATION
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld a, [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
and a
|
|
|
|
jr z, .next_frame
|
2013-12-18 04:54:25 +00:00
|
|
|
dec [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
call .GetPointer
|
|
|
|
ld a, [hli]
|
2013-12-18 04:54:25 +00:00
|
|
|
push af
|
2015-12-23 22:10:50 +00:00
|
|
|
jr .okay
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.next_frame
|
|
|
|
ld hl, BATTLEANIMSTRUCT_FRAME
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
inc [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
call .GetPointer
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hli]
|
2015-12-23 22:10:50 +00:00
|
|
|
cp -2
|
|
|
|
jr z, .restart
|
|
|
|
cp -1
|
|
|
|
jr z, .repeat_last
|
|
|
|
push af
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
push hl
|
|
|
|
and $3f
|
|
|
|
ld hl, BATTLEANIMSTRUCT_DURATION
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-12-23 22:10:50 +00:00
|
|
|
pop hl
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.okay
|
2013-12-18 04:54:25 +00:00
|
|
|
ld a, [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
and $c0
|
|
|
|
srl a
|
2015-12-24 03:51:50 +00:00
|
|
|
ld [wBattleAnimTemp7], a
|
2015-12-23 22:10:50 +00:00
|
|
|
pop af
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
2015-12-04 19:33:29 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.repeat_last
|
|
|
|
xor a
|
|
|
|
ld hl, BATTLEANIMSTRUCT_DURATION
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-12-23 22:10:50 +00:00
|
|
|
ld hl, BATTLEANIMSTRUCT_FRAME
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
dec [hl]
|
2015-12-23 22:10:50 +00:00
|
|
|
dec [hl]
|
|
|
|
jr .loop
|
2015-12-04 19:33:29 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
.restart
|
|
|
|
xor a
|
|
|
|
ld hl, BATTLEANIMSTRUCT_DURATION
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-12-23 22:10:50 +00:00
|
|
|
dec a
|
|
|
|
ld hl, BATTLEANIMSTRUCT_FRAME
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
|
|
|
ld [hl], a
|
2015-12-23 22:10:50 +00:00
|
|
|
jr .loop
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
; ce823
|
|
|
|
|
|
|
|
.GetPointer: ; ce823
|
|
|
|
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
2015-12-23 22:10:50 +00:00
|
|
|
ld e, [hl]
|
|
|
|
ld d, 0
|
|
|
|
ld hl, BattleAnimFrameData
|
|
|
|
add hl, de
|
|
|
|
add hl, de
|
|
|
|
ld e, [hl]
|
|
|
|
inc hl
|
|
|
|
ld d, [hl]
|
|
|
|
ld hl, BATTLEANIMSTRUCT_FRAME
|
2013-12-18 04:54:25 +00:00
|
|
|
add hl, bc
|
2015-12-23 22:10:50 +00:00
|
|
|
ld l, [hl]
|
|
|
|
ld h, $0
|
|
|
|
add hl, hl
|
|
|
|
add hl, de
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
; ce83c
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
GetBattleAnimOAMPointer: ; ce83c
|
|
|
|
ld l, a
|
|
|
|
ld h, 0
|
|
|
|
ld de, BattleAnimOAMData
|
|
|
|
add hl, hl
|
|
|
|
add hl, hl
|
|
|
|
add hl, de
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
; ce846
|
2013-12-18 04:54:25 +00:00
|
|
|
|
2015-12-24 01:46:23 +00:00
|
|
|
LoadBattleAnimObj: ; ce846 (33:6846)
|
2015-12-23 22:10:50 +00:00
|
|
|
push hl
|
|
|
|
ld l, a
|
|
|
|
ld h, 0
|
|
|
|
add hl, hl
|
|
|
|
add hl, hl
|
|
|
|
ld de, AnimObjGFX
|
|
|
|
add hl, de
|
|
|
|
ld c, [hl]
|
|
|
|
inc hl
|
|
|
|
ld b, [hl]
|
2013-12-18 04:54:25 +00:00
|
|
|
inc hl
|
|
|
|
ld a, [hli]
|
2015-12-23 22:10:50 +00:00
|
|
|
ld h, [hl]
|
|
|
|
ld l, a
|
|
|
|
pop de
|
|
|
|
push bc
|
|
|
|
call DecompressRequest2bpp
|
|
|
|
pop bc
|
2013-12-18 04:54:25 +00:00
|
|
|
ret
|
|
|
|
|
2015-12-04 19:33:29 +00:00
|
|
|
; ce85e (33:685e)
|
2013-12-18 08:18:16 +00:00
|
|
|
|
2015-12-23 22:10:50 +00:00
|
|
|
INCLUDE "battle/objects/framesets.asm"
|
|
|
|
INCLUDE "battle/objects/oam.asm"
|
|
|
|
INCLUDE "battle/objects/gfx_headers.asm"
|