You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
even more battle labels
This commit is contained in:
@@ -1430,7 +1430,7 @@ Functioncc8d3: ; cc8d3
|
|||||||
ld e, [hl]
|
ld e, [hl]
|
||||||
inc hl
|
inc hl
|
||||||
ld d, [hl]
|
ld d, [hl]
|
||||||
ld hl, $506f
|
ld hl, BattleAnimations
|
||||||
add hl, de
|
add hl, de
|
||||||
add hl, de
|
add hl, de
|
||||||
call Function3ae1
|
call Function3ae1
|
||||||
|
@@ -130,18 +130,18 @@ Function3c0e5: ; 3c0e5
|
|||||||
ld [$d0ee], a
|
ld [$d0ee], a
|
||||||
ld a, [InLinkBattle]
|
ld a, [InLinkBattle]
|
||||||
and a
|
and a
|
||||||
ld hl, $47bd
|
ld hl, BattleText_0x807bd
|
||||||
jr z, .asm_3c115
|
jr z, .asm_3c115
|
||||||
ld a, [$d0ee]
|
ld a, [$d0ee]
|
||||||
and $c0
|
and $c0
|
||||||
ld [$d0ee], a
|
ld [$d0ee], a
|
||||||
ld hl, $47cf
|
ld hl, BattleText_0x807cf
|
||||||
call Function3d2e0
|
call Function3d2e0
|
||||||
jr nc, .asm_3c115
|
jr nc, .asm_3c115
|
||||||
ld hl, $cd2a
|
ld hl, $cd2a
|
||||||
bit 4, [hl]
|
bit 4, [hl]
|
||||||
jr nz, .asm_3c118
|
jr nz, .asm_3c118
|
||||||
ld hl, $5863
|
ld hl, BattleText_0x81863
|
||||||
|
|
||||||
.asm_3c115
|
.asm_3c115
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
@@ -407,7 +407,7 @@ Function3c27c: ; 3c27c
|
|||||||
pop hl
|
pop hl
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
call GetItemName
|
call GetItemName
|
||||||
ld hl, $4bde
|
ld hl, BattleText_0x80bde
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
callab BattleCommand8c
|
callab BattleCommand8c
|
||||||
pop af
|
pop af
|
||||||
@@ -418,7 +418,7 @@ Function3c27c: ; 3c27c
|
|||||||
ld de, $0103
|
ld de, $0103
|
||||||
call Function3ee0f
|
call Function3ee0f
|
||||||
call Function3c8e4
|
call Function3c8e4
|
||||||
ld hl, $4d97
|
ld hl, BecameConfusedText
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
; 3c300
|
; 3c300
|
||||||
|
|
||||||
@@ -730,7 +730,7 @@ Function3c4df: ; 3c4df
|
|||||||
ld hl, PlayerSubStatus5
|
ld hl, PlayerSubStatus5
|
||||||
res 4, [hl]
|
res 4, [hl]
|
||||||
call SetEnemyTurn
|
call SetEnemyTurn
|
||||||
ld hl, $4c8a
|
ld hl, BattleText_0x80c8a
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
|
|
||||||
.asm_3c518
|
.asm_3c518
|
||||||
@@ -754,7 +754,7 @@ Function3c4df: ; 3c4df
|
|||||||
ld hl, EnemySubStatus5
|
ld hl, EnemySubStatus5
|
||||||
res 4, [hl]
|
res 4, [hl]
|
||||||
call SetPlayerTurn
|
call SetPlayerTurn
|
||||||
ld hl, $4c8a
|
ld hl, BattleText_0x80c8a
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
; 3c543
|
; 3c543
|
||||||
|
|
||||||
@@ -1068,11 +1068,11 @@ Function3c716: ; 3c716
|
|||||||
call GetBattleVar
|
call GetBattleVar
|
||||||
and $18
|
and $18
|
||||||
jr z, .asm_3c768
|
jr z, .asm_3c768
|
||||||
ld hl, $47e2
|
ld hl, BattleText_0x807e2
|
||||||
ld de, $0106
|
ld de, $0106
|
||||||
and $10
|
and $10
|
||||||
jr z, .asm_3c733
|
jr z, .asm_3c733
|
||||||
ld hl, $47f8
|
ld hl, BattleText_0x807f8
|
||||||
ld de, $0105
|
ld de, $0105
|
||||||
|
|
||||||
.asm_3c733
|
.asm_3c733
|
||||||
@@ -1130,7 +1130,7 @@ Function3c716: ; 3c716
|
|||||||
ld a, $1
|
ld a, $1
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
call Function3ccef
|
call Function3ccef
|
||||||
ld hl, $480e
|
ld hl, BattleText_0x8080e
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
|
|
||||||
.asm_3c7a1
|
.asm_3c7a1
|
||||||
@@ -1146,7 +1146,7 @@ Function3c716: ; 3c716
|
|||||||
call Function3ee0f
|
call Function3ee0f
|
||||||
call GetQuarterMaxHP
|
call GetQuarterMaxHP
|
||||||
call Function3cc3f
|
call Function3cc3f
|
||||||
ld hl, $4822
|
ld hl, BattleText_0x80822
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
|
|
||||||
.asm_3c7c5
|
.asm_3c7c5
|
||||||
@@ -1162,7 +1162,7 @@ Function3c716: ; 3c716
|
|||||||
call Function3ee0f
|
call Function3ee0f
|
||||||
call GetQuarterMaxHP
|
call GetQuarterMaxHP
|
||||||
call Function3cc3f
|
call Function3cc3f
|
||||||
ld hl, $4836
|
ld hl, BattleText_0x80836
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
|
|
||||||
.asm_3c7e9
|
.asm_3c7e9
|
||||||
@@ -1214,7 +1214,7 @@ Function3c801: ; 3c801
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [$d265], a
|
ld [$d265], a
|
||||||
push af
|
push af
|
||||||
ld hl, $4864
|
ld hl, BattleText_0x80864
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
pop af
|
pop af
|
||||||
ret nz
|
ret nz
|
||||||
@@ -1304,11 +1304,11 @@ Function3c874: ; 3c874
|
|||||||
.asm_3c8d3
|
.asm_3c8d3
|
||||||
call Function3cc76
|
call Function3cc76
|
||||||
call Function3cc3f
|
call Function3cc3f
|
||||||
ld hl, $4de2
|
ld hl, BattleText_0x80de2
|
||||||
jr .asm_3c8e1
|
jr .asm_3c8e1
|
||||||
|
|
||||||
.asm_3c8de
|
.asm_3c8de
|
||||||
ld hl, $4df5
|
ld hl, BattleText_0x80df5
|
||||||
|
|
||||||
.asm_3c8e1
|
.asm_3c8e1
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
@@ -1364,7 +1364,7 @@ Function3c8eb: ; 3c8eb
|
|||||||
call Function3cc76
|
call Function3cc76
|
||||||
call Function3c8e4
|
call Function3c8e4
|
||||||
call Function3ccef
|
call Function3ccef
|
||||||
ld hl, $4880
|
ld hl, BattleText_0x80880
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
; 3c93c
|
; 3c93c
|
||||||
|
|
||||||
@@ -1504,7 +1504,7 @@ Function3c93c: ; 3c93c
|
|||||||
call Function3c8e4
|
call Function3c8e4
|
||||||
call Function3ddc8
|
call Function3ddc8
|
||||||
call Function3c8e4
|
call Function3c8e4
|
||||||
ld hl, $4899
|
ld hl, BattleText_0x80899
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
; 3ca26
|
; 3ca26
|
||||||
|
|
||||||
@@ -1536,7 +1536,7 @@ Function3ca26: ; 3ca26
|
|||||||
ld [hl], a
|
ld [hl], a
|
||||||
cp $1
|
cp $1
|
||||||
ret nz
|
ret nz
|
||||||
ld hl, $48b6
|
ld hl, BattleText_0x808b6
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
ld a, $10
|
ld a, $10
|
||||||
call _GetBattleVar
|
call _GetBattleVar
|
||||||
@@ -1588,7 +1588,7 @@ Function3ca8f: ; 3ca8f
|
|||||||
ld [hl], $0
|
ld [hl], $0
|
||||||
call UpdateBattleHuds
|
call UpdateBattleHuds
|
||||||
call SetEnemyTurn
|
call SetEnemyTurn
|
||||||
ld hl, $524b
|
ld hl, DefrostedOpponentText
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
|
|
||||||
.asm_3cac9
|
.asm_3cac9
|
||||||
@@ -1614,7 +1614,7 @@ Function3ca8f: ; 3ca8f
|
|||||||
.asm_3caef
|
.asm_3caef
|
||||||
call UpdateBattleHuds
|
call UpdateBattleHuds
|
||||||
call SetPlayerTurn
|
call SetPlayerTurn
|
||||||
ld hl, $524b
|
ld hl, DefrostedOpponentText
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
; 3cafb
|
; 3cafb
|
||||||
|
|
||||||
@@ -1652,7 +1652,7 @@ Function3cafb: ; 3cafb
|
|||||||
|
|
||||||
.asm_3cb2e
|
.asm_3cb2e
|
||||||
ld [hBattleTurn], a
|
ld [hBattleTurn], a
|
||||||
ld hl, $48d2
|
ld hl, BattleText_0x808d2
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
; 3cb36
|
; 3cb36
|
||||||
|
|
||||||
@@ -3453,12 +3453,12 @@ Function3d618: ; 3d618
|
|||||||
add hl, bc
|
add hl, bc
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
dec a
|
dec a
|
||||||
ld hl, $542b
|
ld hl, BaseData + 7 ; type
|
||||||
ld bc, $0020
|
ld bc, $20
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld de, EnemyMonType1
|
ld de, EnemyMonType1
|
||||||
ld bc, $0002
|
ld bc, 2
|
||||||
ld a, $14
|
ld a, BANK(BaseData)
|
||||||
call FarCopyBytes
|
call FarCopyBytes
|
||||||
ld a, [BattleMonType1]
|
ld a, [BattleMonType1]
|
||||||
ld [PlayerMoveType], a
|
ld [PlayerMoveType], a
|
||||||
@@ -5128,7 +5128,7 @@ Function3e19b: ; 3e19b
|
|||||||
ld hl, $cd2a
|
ld hl, $cd2a
|
||||||
bit 4, [hl]
|
bit 4, [hl]
|
||||||
jr nz, .asm_3e1c5
|
jr nz, .asm_3e1c5
|
||||||
ld hl, $5863
|
ld hl, BattleText_0x81863
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
ld c, $3c
|
ld c, $3c
|
||||||
call DelayFrames
|
call DelayFrames
|
||||||
@@ -8550,47 +8550,52 @@ Function3f607: ; 3f607
|
|||||||
Function3f662: ; 3f662
|
Function3f662: ; 3f662
|
||||||
ld hl, EnemyMonMove1
|
ld hl, EnemyMonMove1
|
||||||
ld de, $d25e
|
ld de, $d25e
|
||||||
ld b, $4
|
ld b, 4
|
||||||
.asm_3f66a
|
.loop
|
||||||
ld a, [de]
|
ld a, [de]
|
||||||
inc de
|
inc de
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
and a
|
and a
|
||||||
jr z, .asm_3f690
|
jr z, .clearpp
|
||||||
|
|
||||||
push bc
|
push bc
|
||||||
push hl
|
push hl
|
||||||
|
|
||||||
push hl
|
push hl
|
||||||
dec a
|
dec a
|
||||||
ld hl, $5b00
|
ld hl, Moves + MOVE_PP
|
||||||
ld bc, $0007
|
ld bc, Move2 - Move1
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld a, $10
|
ld a, BANK(Moves)
|
||||||
call GetFarByte
|
call GetFarByte
|
||||||
pop hl
|
pop hl
|
||||||
ld bc, $0005
|
|
||||||
|
ld bc, EnemyMonPP - (EnemyMonMoves + 1)
|
||||||
add hl, bc
|
add hl, bc
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
pop hl
|
pop hl
|
||||||
pop bc
|
pop bc
|
||||||
|
|
||||||
dec b
|
dec b
|
||||||
jr nz, .asm_3f66a
|
jr nz, .loop
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_3f68e
|
.clear
|
||||||
xor a
|
xor a
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
|
|
||||||
.asm_3f690
|
.clearpp
|
||||||
push bc
|
push bc
|
||||||
push hl
|
push hl
|
||||||
ld bc, $0005
|
ld bc, EnemyMonPP - (EnemyMonMoves + 1)
|
||||||
add hl, bc
|
add hl, bc
|
||||||
xor a
|
xor a
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
pop hl
|
pop hl
|
||||||
pop bc
|
pop bc
|
||||||
dec b
|
dec b
|
||||||
jr nz, .asm_3f68e
|
jr nz, .clear
|
||||||
ret
|
ret
|
||||||
; 3f69e
|
; 3f69e
|
||||||
|
|
||||||
|
@@ -4813,7 +4813,7 @@ BattleCommand44: ; 359e6
|
|||||||
ld [$d265], a
|
ld [$d265], a
|
||||||
ld a, $29
|
ld a, $29
|
||||||
call Predef
|
call Predef
|
||||||
ld hl, $5452
|
ld hl, TransformedTypeText
|
||||||
jp StdBattleTextBox
|
jp StdBattleTextBox
|
||||||
.asm_35a50
|
.asm_35a50
|
||||||
jp Function37354
|
jp Function37354
|
||||||
@@ -6224,16 +6224,16 @@ Function3627b: ; 3627b
|
|||||||
|
|
||||||
Function36281: ; 36281
|
Function36281: ; 36281
|
||||||
ld bc, $c6fe
|
ld bc, $c6fe
|
||||||
ld hl, $7447
|
ld hl, Function3f447
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_36292 ; 0x3628a $6
|
jr z, .asm_36292 ; 0x3628a $6
|
||||||
ld bc, $c6fa
|
ld bc, $c6fa
|
||||||
ld hl, $7486
|
ld hl, Function3f486
|
||||||
.asm_36292
|
.asm_36292
|
||||||
ld a, $c
|
ld a, BATTLE_VARS_MOVE_ANIM
|
||||||
call GetBattleVar
|
call GetBattleVar
|
||||||
cp $6b
|
cp MINIMIZE
|
||||||
ret nz
|
ret nz
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [bc], a
|
ld [bc], a
|
||||||
@@ -6800,11 +6800,11 @@ BattleCommandaf: ; 365a7
|
|||||||
|
|
||||||
|
|
||||||
BattleCommanda6: ; 365af
|
BattleCommanda6: ; 365af
|
||||||
ld hl, $743d
|
ld hl, Function3f43d
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_365ba ; 365b5 $3
|
jr z, .asm_365ba ; 365b5 $3
|
||||||
ld hl, $747c
|
ld hl, Function3f47c
|
||||||
.asm_365ba
|
.asm_365ba
|
||||||
xor a
|
xor a
|
||||||
ld [$ffd4], a
|
ld [$ffd4], a
|
||||||
@@ -6814,11 +6814,11 @@ BattleCommanda6: ; 365af
|
|||||||
|
|
||||||
|
|
||||||
BattleCommanda7: ; 365c3
|
BattleCommanda7: ; 365c3
|
||||||
ld hl, $7447
|
ld hl, Function3f447
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
jr z, .asm_365ce ; 365c9 $3
|
jr z, .asm_365ce ; 365c9 $3
|
||||||
ld hl, $7486
|
ld hl, Function3f486
|
||||||
.asm_365ce
|
.asm_365ce
|
||||||
xor a
|
xor a
|
||||||
ld [$ffd4], a
|
ld [$ffd4], a
|
||||||
@@ -9709,7 +9709,7 @@ BattleCommand67: ; 379c9
|
|||||||
ld b, 1
|
ld b, 1
|
||||||
call GetSGBLayout
|
call GetSGBLayout
|
||||||
call Function32f9
|
call Function32f9
|
||||||
call Function37a67
|
call BatonPass_LinkPlayerSwitch
|
||||||
|
|
||||||
; Mobile link battles handle entrances differently
|
; Mobile link battles handle entrances differently
|
||||||
callba Function3d2e0
|
callba Function3d2e0
|
||||||
@@ -9726,7 +9726,7 @@ BattleCommand67: ; 379c9
|
|||||||
|
|
||||||
; Wildmons don't have anything to switch to
|
; Wildmons don't have anything to switch to
|
||||||
ld a, [IsInBattle]
|
ld a, [IsInBattle]
|
||||||
dec a
|
dec a ; WILDMON
|
||||||
jp z, FailedBatonPass
|
jp z, FailedBatonPass
|
||||||
|
|
||||||
call CheckAnyOtherAliveEnemyMons
|
call CheckAnyOtherAliveEnemyMons
|
||||||
@@ -9734,7 +9734,7 @@ BattleCommand67: ; 379c9
|
|||||||
|
|
||||||
call UpdateEnemyMonInParty
|
call UpdateEnemyMonInParty
|
||||||
call AnimateCurrentMove
|
call AnimateCurrentMove
|
||||||
call Function37a82
|
call BatonPass_LinkEnemySwitch
|
||||||
|
|
||||||
; Mobile link battles handle entrances differently
|
; Mobile link battles handle entrances differently
|
||||||
callba Function3d2e0
|
callba Function3d2e0
|
||||||
@@ -9759,7 +9759,7 @@ BattleCommand67: ; 379c9
|
|||||||
; 37a67
|
; 37a67
|
||||||
|
|
||||||
|
|
||||||
Function37a67: ; 37a67
|
BatonPass_LinkPlayerSwitch: ; 37a67
|
||||||
ld a, [InLinkBattle]
|
ld a, [InLinkBattle]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
@@ -9778,7 +9778,7 @@ Function37a67: ; 37a67
|
|||||||
; 37a82
|
; 37a82
|
||||||
|
|
||||||
|
|
||||||
Function37a82: ; 37a82
|
BatonPass_LinkEnemySwitch: ; 37a82
|
||||||
ld a, [InLinkBattle]
|
ld a, [InLinkBattle]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
|
16
main.asm
16
main.asm
@@ -5271,10 +5271,10 @@ Function6520: ; 6520
|
|||||||
push hl
|
push hl
|
||||||
push de
|
push de
|
||||||
dec a
|
dec a
|
||||||
ld hl, $5b00
|
ld hl, Moves + MOVE_PP
|
||||||
ld bc, $0007
|
ld bc, Move2 - Move1
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld a, $10
|
ld a, BANK(Moves)
|
||||||
call GetFarByte
|
call GetFarByte
|
||||||
pop de
|
pop de
|
||||||
pop hl
|
pop hl
|
||||||
@@ -37807,10 +37807,10 @@ Function39806: ; 39806
|
|||||||
push hl
|
push hl
|
||||||
push bc
|
push bc
|
||||||
dec a
|
dec a
|
||||||
ld hl, $5b00
|
ld hl, Moves + MOVE_PP
|
||||||
ld bc, $0007
|
ld bc, Move2 - Move1
|
||||||
call AddNTimes
|
call AddNTimes
|
||||||
ld a, $10
|
ld a, BANK(Moves)
|
||||||
call GetFarByte
|
call GetFarByte
|
||||||
pop bc
|
pop bc
|
||||||
pop hl
|
pop hl
|
||||||
@@ -83077,11 +83077,11 @@ Function100bc2: ; 100bc2
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.asm_100c63
|
.asm_100c63
|
||||||
ld hl, $4c5b
|
ld hl, BattleText_0x80c5b
|
||||||
jr .asm_100c6b
|
jr .asm_100c6b
|
||||||
|
|
||||||
.asm_100c68
|
.asm_100c68
|
||||||
ld hl, $4c39
|
ld hl, BattleText_0x80c39
|
||||||
|
|
||||||
.asm_100c6b
|
.asm_100c6b
|
||||||
call StdBattleTextBox
|
call StdBattleTextBox
|
||||||
|
Reference in New Issue
Block a user