more battle anim labels

This commit is contained in:
yenatch 2013-12-09 16:20:19 -05:00
parent 708df7907f
commit 46d96bc7fd
4 changed files with 67 additions and 49 deletions

View File

@ -10635,7 +10635,7 @@ Function0x37ed5: ; 37ed5
push hl push hl
push de push de
push bc push bc
callba Function4ea44 callba CheckBattleScene
pop bc pop bc
pop de pop de
pop hl pop hl

View File

@ -5,6 +5,10 @@ OTPARTYMON EQU 1
BOXMON EQU 2 BOXMON EQU 2
WILDMON EQU 4 WILDMON EQU 4
; Options: ; cfcc
BATTLE_SHIFT EQU 6
BATTLE_SCENE EQU 7
; WalkingDirection: ; d043 ; WalkingDirection: ; d043
STANDING EQU -1 STANDING EQU -1
DOWN EQU 0 DOWN EQU 0

103
main.asm
View File

@ -42334,7 +42334,7 @@ Function3d7c7: ; 3d7c7
ld bc, TempMonSpecies ld bc, TempMonSpecies
callba Function4e53f callba Function4e53f
jr c, .asm_3d82c jr c, .asm_3d82c
callba Function4ea44 callba CheckBattleScene
jr c, .asm_3d821 jr c, .asm_3d821
ld hl, $c4ac ld hl, $c4ac
ld d, $0 ld d, $0
@ -48075,7 +48075,7 @@ BattleStartMessage: ; 3fc8b
callba CheckSleepingTreeMon callba CheckSleepingTreeMon
jr c, .asm_3fceb jr c, .asm_3fceb
callba Function4ea44 callba CheckBattleScene
jr c, .asm_3fce0 jr c, .asm_3fce0
hlcoord 12, 0 hlcoord 12, 0
@ -60076,30 +60076,37 @@ Function4ea0a: ; 4ea0a
Function4ea44: ; 4ea44 CheckBattleScene: ; 4ea44
ld a, $0 ; Return carry if battle scene is turned off.
ld a, 0
ld hl, InLinkBattle ld hl, InLinkBattle
call GetFarWRAMByte call GetFarWRAMByte
cp $4 cp 4
jr z, .asm_4ea59 jr z, .mobile
ld a, [Options] ld a, [Options]
bit 7, a bit BATTLE_SCENE, a
jr nz, .asm_4ea80 jr nz, .off
and a and a
ret ret
.asm_4ea59 .mobile
ld a, [$cd2f] ld a, [$cd2f]
and a and a
jr nz, .asm_4ea72 jr nz, .asm_4ea72
ld a, $4 ld a, $4
call GetSRAMBank call GetSRAMBank
ld a, [$a60c] ld a, [$a60c]
ld c, a ld c, a
call CloseSRAM call CloseSRAM
ld a, c ld a, c
bit 0, c bit 0, c
jr z, .asm_4ea80 jr z, .off
and a and a
ret ret
@ -60108,11 +60115,12 @@ Function4ea44: ; 4ea44
ld hl, $dc00 ld hl, $dc00
call GetFarWRAMByte call GetFarWRAMByte
bit 0, a bit 0, a
jr z, .asm_4ea80 jr z, .off
and a and a
ret ret
.asm_4ea80 .off
scf scf
ret ret
; 4ea82 ; 4ea82
@ -87190,13 +87198,13 @@ _PlayBattleAnim: ; cc0e4
ld c, 6 ld c, 6
.wait .wait
call Functioncc1fb call BattleAnimDelayFrame
dec c dec c
jr nz, .wait jr nz, .wait
call Functioncc8a4 call BattleAnimAssignPals
call Functioncc1e2 call BattleAnimRequestPals
call Functioncc1fb call BattleAnimDelayFrame
ld c, 1 ld c, 1
ld a, [rKEY1] ld a, [rKEY1]
@ -87218,9 +87226,9 @@ _PlayBattleAnim: ; cc0e4
ld a, $1 ld a, $1
ld [hBGMapMode], a ld [hBGMapMode], a
call Functioncc1fb call BattleAnimDelayFrame
call Functioncc1fb call BattleAnimDelayFrame
call Functioncc1fb call BattleAnimDelayFrame
call WaitSFX call WaitSFX
ret ret
; cc11c ; cc11c
@ -87231,20 +87239,20 @@ Functioncc11c: ; cc11c
and a and a
jr nz, .asm_cc156 jr nz, .asm_cc156
callba Function4ea44 callba CheckBattleScene
jr c, .asm_cc141 jr c, .asm_cc141
call Functioncc1a1 call BattleAnimClearHud
call Functioncc163 call Functioncc163
call Functioncc8a4 call BattleAnimAssignPals
call Functioncc1e2 call BattleAnimRequestPals
xor a xor a
ld [hSCX], a ld [hSCX], a
ld [hSCY], a ld [hSCY], a
call Functioncc1fb call BattleAnimDelayFrame
call Functioncc1bb call BattleAnimRestoreHuds
.asm_cc141 .asm_cc141
ld a, [$cfca] ld a, [$cfca]
@ -87253,7 +87261,7 @@ Functioncc11c: ; cc11c
ld l, a ld l, a
ld h, 0 ld h, 0
ld de, $010e ld de, $10e
add hl, de add hl, de
ld a, l ld a, l
ld [FXAnimIDLo], a ld [FXAnimIDLo], a
@ -87274,12 +87282,12 @@ Functioncc163: ; cc163
call Functioncc8d3 call Functioncc8d3
.asm_cc166 .playframe
call Functioncc25f call Functioncc25f
call Functionccb48 call Functionccb48
call Functioncc96e call Functioncc96e
call Function3b0c call Function3b0c
call Functioncc1e2 call BattleAnimRequestPals
; Speed up Rollout's animation on consecutive turns. ; Speed up Rollout's animation on consecutive turns.
ld a, [FXAnimIDHi] ld a, [FXAnimIDHi]
@ -87293,7 +87301,7 @@ Functioncc163: ; cc163
ld a, $2e ld a, $2e
ld b, 5 ld b, 5
ld de, 4 ld de, 4
ld hl, $d3fa ld hl, ActiveBGEffects
.asm_cc18c .asm_cc18c
cp [hl] cp [hl]
jr z, .asm_cc196 jr z, .asm_cc196
@ -87302,33 +87310,34 @@ Functioncc163: ; cc163
jr nz, .asm_cc18c jr nz, .asm_cc18c
.asm_cc193 .asm_cc193
call Functioncc1fb call BattleAnimDelayFrame
.asm_cc196 .asm_cc196
ld a, [$d40f] ld a, [$d40f]
bit 0, a bit 0, a
jr z, .asm_cc166 jr z, .playframe
call Functioncc23d call Functioncc23d
ret ret
; cc1a1 ; cc1a1
Functioncc1a1: ; cc1a1 BattleAnimClearHud: ; cc1a1
call Functioncc1fb
call BattleAnimDelayFrame
call WaitTop call WaitTop
call ClearActorHud call ClearActorHud
ld a, $1 ld a, $1
ld [hBGMapMode], a ld [hBGMapMode], a
call Functioncc1fb call BattleAnimDelayFrame
call Functioncc1fb call BattleAnimDelayFrame
call Functioncc1fb call BattleAnimDelayFrame
call WaitTop call WaitTop
ret ret
; cc1bb ; cc1bb
Functioncc1bb: ; cc1bb BattleAnimRestoreHuds: ; cc1bb
call Functioncc1fb call BattleAnimDelayFrame
call WaitTop call WaitTop
ld a, [rSVBK] ld a, [rSVBK]
@ -87345,14 +87354,14 @@ Functioncc1bb: ; cc1bb
ld a, $1 ld a, $1
ld [hBGMapMode], a ld [hBGMapMode], a
call Functioncc1fb call BattleAnimDelayFrame
call Functioncc1fb call BattleAnimDelayFrame
call Functioncc1fb call BattleAnimDelayFrame
call WaitTop call WaitTop
ret ret
; cc1e2 ; cc1e2
Functioncc1e2: ; cc1e2 BattleAnimRequestPals: ; cc1e2
ld a, [hCGB] ld a, [hCGB]
and a and a
@ -87372,7 +87381,7 @@ Functioncc1e2: ; cc1e2
ret ret
; cc1fb ; cc1fb
Functioncc1fb: ; cc1fb BattleAnimDelayFrame: ; cc1fb
; Like DelayFrame but wastes battery life. ; Like DelayFrame but wastes battery life.
ld a, 1 ld a, 1
@ -88512,7 +88521,7 @@ Functioncc881: ; cc881
ret ret
; cc8a4 ; cc8a4
Functioncc8a4: ; cc8a4 BattleAnimAssignPals: ; cc8a4
ld a, [hCGB] ld a, [hCGB]
and a and a
jr nz, .asm_cc8be jr nz, .asm_cc8be
@ -88558,8 +88567,8 @@ Functioncc8d3: ; cc8d3
add hl, de add hl, de
add hl, de add hl, de
call Function3ae1 call Function3ae1
call Functioncc8a4 call BattleAnimAssignPals
call Functioncc1fb call BattleAnimDelayFrame
ret ret
; cc8f6 ; cc8f6
@ -88575,7 +88584,7 @@ Functioncc8f6: ; cc8f6
xor a xor a
ld [hSCX], a ld [hSCX], a
ld [hSCY], a ld [hSCY], a
call Functioncc1fb call BattleAnimDelayFrame
ld a, $1 ld a, $1
ld [hBGMapMode], a ld [hBGMapMode], a
ret ret

View File

@ -2144,7 +2144,12 @@ LYOverridesBackup: ; d200
LYOverridesBackupEnd: LYOverridesBackupEnd:
SECTION "Battle Animations", WRAMX[$d410], BANK[5] SECTION "Battle Animations", WRAMX[$d3fa], BANK[5]
ActiveBGEffects: ; d3fa
ds 4 * 5
ds 2
BattleAnimAddress: ; d410 BattleAnimAddress: ; d410
ds 2 ds 2