You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-09-08 08:13:02 -07:00
Keep documentation in sync with new WRAM labels
This commit is contained in:
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -384,8 +384,9 @@ ShortHPBar_CalcPixelFrame: ; d839
|
|||||||
call AddNTimes
|
call AddNTimes
|
||||||
|
|
||||||
ld b, 0
|
ld b, 0
|
||||||
; This routine is buggy. If [wCurHPAnimMaxHP] * [wCurHPBarPixels] is divisible
|
; This routine is buggy. If [wCurHPAnimMaxHP] * [wCurHPBarPixels] is
|
||||||
; by 48, the loop runs one extra time. To fix, uncomment the line below.
|
; divisible by HP_BAR_LENGTH_PX, the loop runs one extra time.
|
||||||
|
; To fix, uncomment the line below.
|
||||||
.loop
|
.loop
|
||||||
ld a, l
|
ld a, l
|
||||||
sub HP_BAR_LENGTH_PX
|
sub HP_BAR_LENGTH_PX
|
||||||
|
@@ -1504,8 +1504,8 @@ BattleCheckTypeMatchup: ; 347c8
|
|||||||
ld hl, wBattleMonType1
|
ld hl, wBattleMonType1
|
||||||
CheckTypeMatchup: ; 347d3
|
CheckTypeMatchup: ; 347d3
|
||||||
; There is an incorrect assumption about this function made in the AI related code: when
|
; There is an incorrect assumption about this function made in the AI related code: when
|
||||||
; the AI calls CheckTypeMatchup (not BattleCheckTypeMatchup), it assumes that placing
|
; the AI calls CheckTypeMatchup (not BattleCheckTypeMatchup), it assumes that placing the
|
||||||
; the offensive type in a will make this function do the right thing. Since a is overwritten,
|
; offensive type in a will make this function do the right thing. Since a is overwritten,
|
||||||
; this assumption is incorrect. A simple fix would be to load the move type for the
|
; this assumption is incorrect. A simple fix would be to load the move type for the
|
||||||
; current move into a in BattleCheckTypeMatchup, before falling through, which is
|
; current move into a in BattleCheckTypeMatchup, before falling through, which is
|
||||||
; consistent with how the rest of the code assumes this code works like.
|
; consistent with how the rest of the code assumes this code works like.
|
||||||
|
@@ -1219,6 +1219,7 @@ BattleAnimFunction_0E: ; cd6e3 (33:56e3)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncd6ea
|
dw Functioncd6ea
|
||||||
dw Functioncd6f7
|
dw Functioncd6f7
|
||||||
|
|
||||||
Functioncd6ea: ; cd6ea (33:56ea)
|
Functioncd6ea: ; cd6ea (33:56ea)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -1226,6 +1227,7 @@ Functioncd6ea: ; cd6ea (33:56ea)
|
|||||||
ld a, BATTLEANIMFRAMESET_24
|
ld a, BATTLEANIMFRAMESET_24
|
||||||
add [hl] ; offset
|
add [hl] ; offset
|
||||||
call ReinitBattleAnimFrameset
|
call ReinitBattleAnimFrameset
|
||||||
|
|
||||||
Functioncd6f7: ; cd6f7 (33:56f7)
|
Functioncd6f7: ; cd6f7 (33:56f7)
|
||||||
ld hl, BATTLEANIMSTRUCT_XCOORD
|
ld hl, BATTLEANIMSTRUCT_XCOORD
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -1256,6 +1258,7 @@ BattleAnimFunction_0F: ; cd71a (33:571a)
|
|||||||
dw Functioncd728
|
dw Functioncd728
|
||||||
dw Functioncd763
|
dw Functioncd763
|
||||||
dw Functioncd776
|
dw Functioncd776
|
||||||
|
|
||||||
Functioncd725: ; cd725 (33:5725)
|
Functioncd725: ; cd725 (33:5725)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
Functioncd728: ; cd728 (33:5728)
|
Functioncd728: ; cd728 (33:5728)
|
||||||
@@ -1345,6 +1348,7 @@ BattleAnimFunction_14: ; cd7a4 (33:57a4)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncd7ab
|
dw Functioncd7ab
|
||||||
dw Functioncd7d2
|
dw Functioncd7d2
|
||||||
|
|
||||||
Functioncd7ab: ; cd7ab (33:57ab)
|
Functioncd7ab: ; cd7ab (33:57ab)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -1414,6 +1418,7 @@ BattleAnimFunction_15: ; cd80c (33:580c)
|
|||||||
dw Functioncd817
|
dw Functioncd817
|
||||||
dw Functioncd81f
|
dw Functioncd81f
|
||||||
dw Functioncd820
|
dw Functioncd820
|
||||||
|
|
||||||
Functioncd817: ; cd817 (33:5817)
|
Functioncd817: ; cd817 (33:5817)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld a, BATTLEANIMFRAMESET_35
|
ld a, BATTLEANIMFRAMESET_35
|
||||||
@@ -1435,6 +1440,7 @@ BattleAnimFunction_16: ; cd824 (33:5824)
|
|||||||
dw Functioncd88f
|
dw Functioncd88f
|
||||||
dw Functioncd88f
|
dw Functioncd88f
|
||||||
dw Functioncd893
|
dw Functioncd893
|
||||||
|
|
||||||
Functioncd835: ; cd835 (33:5835)
|
Functioncd835: ; cd835 (33:5835)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
||||||
@@ -1513,6 +1519,7 @@ BattleAnimFunction_17: ; cd89a (33:589a)
|
|||||||
dw Functioncd8f5
|
dw Functioncd8f5
|
||||||
dw Functioncd8f5
|
dw Functioncd8f5
|
||||||
dw Functioncd8f9
|
dw Functioncd8f9
|
||||||
|
|
||||||
Functioncd8ab: ; cd8ab (33:58ab)
|
Functioncd8ab: ; cd8ab (33:58ab)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -1534,6 +1541,7 @@ Functioncd8ab: ; cd8ab (33:58ab)
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and $7f
|
and $7f
|
||||||
ld [hl], a
|
ld [hl], a
|
||||||
|
|
||||||
Functioncd8cc: ; cd8cc (33:58cc)
|
Functioncd8cc: ; cd8cc (33:58cc)
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -1561,6 +1569,7 @@ Functioncd8cc: ; cd8cc (33:58cc)
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
and $1f
|
and $1f
|
||||||
ret nz
|
ret nz
|
||||||
|
|
||||||
Functioncd8f5: ; cd8f5 (33:58f5)
|
Functioncd8f5: ; cd8f5 (33:58f5)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ret
|
ret
|
||||||
@@ -1576,6 +1585,7 @@ BattleAnimFunction_18: ; cd900 (33:5900)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncd907
|
dw Functioncd907
|
||||||
dw Functioncd913
|
dw Functioncd913
|
||||||
|
|
||||||
Functioncd907: ; cd907 (33:5907)
|
Functioncd907: ; cd907 (33:5907)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
@@ -1635,6 +1645,7 @@ BattleAnimFunction_19: ; cd954 (33:5954)
|
|||||||
dw Functioncd96e
|
dw Functioncd96e
|
||||||
dw Functioncd96a
|
dw Functioncd96a
|
||||||
dw Functioncd97b
|
dw Functioncd97b
|
||||||
|
|
||||||
Functioncd961: ; cd961 (33:5961)
|
Functioncd961: ; cd961 (33:5961)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -1785,6 +1796,7 @@ BattleAnimFunction_1F: ; cda31 (33:5a31)
|
|||||||
dw Functioncda4c
|
dw Functioncda4c
|
||||||
dw Functioncda3a
|
dw Functioncda3a
|
||||||
dw Functioncda4c
|
dw Functioncda4c
|
||||||
|
|
||||||
Functioncda3a: ; cda3a (33:5a3a)
|
Functioncda3a: ; cda3a (33:5a3a)
|
||||||
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -1898,6 +1910,7 @@ BattleAnimFunction_3F: ; cdad6 (33:5ad6)
|
|||||||
dw Functioncdadf
|
dw Functioncdadf
|
||||||
dw Functioncdae9
|
dw Functioncdae9
|
||||||
dw Functioncdaf9
|
dw Functioncdaf9
|
||||||
|
|
||||||
Functioncdadf: ; cdadf (33:5adf)
|
Functioncdadf: ; cdadf (33:5adf)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_10
|
ld hl, BATTLEANIMSTRUCT_10
|
||||||
@@ -1936,6 +1949,7 @@ BattleAnimFunction_1B: ; cdb06 (33:5b06)
|
|||||||
dw Functioncdb28
|
dw Functioncdb28
|
||||||
dw Functioncdb50
|
dw Functioncdb50
|
||||||
dw Functioncdb65
|
dw Functioncdb65
|
||||||
|
|
||||||
Functioncdb13: ; cdb13 (33:5b13)
|
Functioncdb13: ; cdb13 (33:5b13)
|
||||||
ret
|
ret
|
||||||
|
|
||||||
@@ -2027,6 +2041,7 @@ BattleAnimFunction_1D: ; cdb80 (33:5b80)
|
|||||||
dw Functioncdc48
|
dw Functioncdc48
|
||||||
dw Functioncdc57
|
dw Functioncdc57
|
||||||
dw Functioncdc74
|
dw Functioncdc74
|
||||||
|
|
||||||
Functioncdb9f: ; cdb9f (33:5b9f)
|
Functioncdb9f: ; cdb9f (33:5b9f)
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -2239,6 +2254,7 @@ BattleAnimFunction_21: ; cdcc3 (33:5cc3)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncdcca
|
dw Functioncdcca
|
||||||
dw Functioncdced
|
dw Functioncdced
|
||||||
|
|
||||||
Functioncdcca: ; cdcca (33:5cca)
|
Functioncdcca: ; cdcca (33:5cca)
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
and a
|
and a
|
||||||
@@ -2313,6 +2329,7 @@ BattleAnimFunction_22: ; cdd2a (33:5d2a)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncdd31
|
dw Functioncdd31
|
||||||
dw Functioncdd4f
|
dw Functioncdd4f
|
||||||
|
|
||||||
Functioncdd31: ; cdd31 (33:5d31)
|
Functioncdd31: ; cdd31 (33:5d31)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -2380,6 +2397,7 @@ BattleAnimFunction_23: ; cdd90 (33:5d90)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncdd97
|
dw Functioncdd97
|
||||||
dw Functioncddbc
|
dw Functioncddbc
|
||||||
|
|
||||||
Functioncdd97: ; cdd97 (33:5d97)
|
Functioncdd97: ; cdd97 (33:5d97)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
ld hl, BATTLEANIMSTRUCT_FRAMESET_ID
|
||||||
@@ -2449,6 +2467,7 @@ BattleAnimFunction_24: ; cddf9 (33:5df9)
|
|||||||
dw Functioncde02
|
dw Functioncde02
|
||||||
dw Functioncde20
|
dw Functioncde20
|
||||||
dw Functioncde21
|
dw Functioncde21
|
||||||
|
|
||||||
Functioncde02: ; cde02 (33:5e02)
|
Functioncde02: ; cde02 (33:5e02)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -2528,6 +2547,7 @@ BattleAnimFunction_27: ; cde6b (33:5e6b)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncde72
|
dw Functioncde72
|
||||||
dw Functioncde88
|
dw Functioncde88
|
||||||
|
|
||||||
Functioncde72: ; cde72 (33:5e72)
|
Functioncde72: ; cde72 (33:5e72)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -2549,6 +2569,7 @@ BattleAnimFunction_28: ; cde89 (33:5e89)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncde90
|
dw Functioncde90
|
||||||
dw Functioncdebf
|
dw Functioncdebf
|
||||||
|
|
||||||
Functioncde90: ; cde90 (33:5e90)
|
Functioncde90: ; cde90 (33:5e90)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
@@ -2692,6 +2713,7 @@ BattleAnimFunction_PoisonGas: ; cdf59 (33:5f59)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functioncdf60
|
dw Functioncdf60
|
||||||
dw BattleAnimFunction_SpiralDescent
|
dw BattleAnimFunction_SpiralDescent
|
||||||
|
|
||||||
Functioncdf60: ; cdf60 (33:5f60)
|
Functioncdf60: ; cdf60 (33:5f60)
|
||||||
ld hl, BATTLEANIMSTRUCT_XCOORD
|
ld hl, BATTLEANIMSTRUCT_XCOORD
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -2813,6 +2835,7 @@ BattleAnimFunction_35: ; ce00b (33:600b)
|
|||||||
dw Functionce014
|
dw Functionce014
|
||||||
dw Functionce023
|
dw Functionce023
|
||||||
dw Functionce05f
|
dw Functionce05f
|
||||||
|
|
||||||
Functionce014: ; ce014 (33:6014)
|
Functionce014: ; ce014 (33:6014)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
@@ -2936,6 +2959,7 @@ BattleAnimFunction_2C: ; ce0c5 (33:60c5)
|
|||||||
dw Functionce0ce
|
dw Functionce0ce
|
||||||
dw Functionce0f8
|
dw Functionce0f8
|
||||||
dw Functionce0dd
|
dw Functionce0dd
|
||||||
|
|
||||||
Functionce0ce: ; ce0ce (33:60ce)
|
Functionce0ce: ; ce0ce (33:60ce)
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -2985,6 +3009,7 @@ BattleAnimFunction_2E: ; ce10e (33:610e)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functionce115
|
dw Functionce115
|
||||||
dw Functionce12a
|
dw Functionce12a
|
||||||
|
|
||||||
Functionce115: ; ce115 (33:6115)
|
Functionce115: ; ce115 (33:6115)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
@@ -3133,6 +3158,7 @@ BattleAnimFunction_30: ; ce1e7 (33:61e7)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functionce1ee
|
dw Functionce1ee
|
||||||
dw Functionce1fb
|
dw Functionce1fb
|
||||||
|
|
||||||
Functionce1ee: ; ce1ee (33:61ee)
|
Functionce1ee: ; ce1ee (33:61ee)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_YCOORD
|
ld hl, BATTLEANIMSTRUCT_YCOORD
|
||||||
@@ -3172,6 +3198,7 @@ BattleAnimFunction_31: ; ce226 (33:6226)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functionce22d
|
dw Functionce22d
|
||||||
dw Functionce254
|
dw Functionce254
|
||||||
|
|
||||||
Functionce22d: ; ce22d (33:622d)
|
Functionce22d: ; ce22d (33:622d)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -3203,6 +3230,7 @@ BattleAnimFunction_32: ; ce255 (33:6255)
|
|||||||
dw Functionce274
|
dw Functionce274
|
||||||
dw Functionce278
|
dw Functionce278
|
||||||
dw Functionce289
|
dw Functionce289
|
||||||
|
|
||||||
Functionce260: ; ce260 (33:6260)
|
Functionce260: ; ce260 (33:6260)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld a, [hBattleTurn]
|
ld a, [hBattleTurn]
|
||||||
@@ -3318,6 +3346,7 @@ BattleAnimFunction_36: ; ce2fd (33:62fd)
|
|||||||
dw Functionce306
|
dw Functionce306
|
||||||
dw Functionce330
|
dw Functionce330
|
||||||
dw Functionce34c
|
dw Functionce34c
|
||||||
|
|
||||||
Functionce306: ; ce306 (33:6306)
|
Functionce306: ; ce306 (33:6306)
|
||||||
ld hl, BATTLEANIMSTRUCT_YOFFSET
|
ld hl, BATTLEANIMSTRUCT_YOFFSET
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -3389,6 +3418,7 @@ BattleAnimFunction_37: ; ce35f (33:635f)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functionce366
|
dw Functionce366
|
||||||
dw Functionce375
|
dw Functionce375
|
||||||
|
|
||||||
Functionce366: ; ce366 (33:6366)
|
Functionce366: ; ce366 (33:6366)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -3419,6 +3449,7 @@ BattleAnimFunction_38: ; ce389 (33:6389)
|
|||||||
dw Functionce392
|
dw Functionce392
|
||||||
dw Functionce39c
|
dw Functionce39c
|
||||||
dw Functionce3ae
|
dw Functionce3ae
|
||||||
|
|
||||||
Functionce392: ; ce392 (33:6392)
|
Functionce392: ; ce392 (33:6392)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
@@ -3500,6 +3531,7 @@ BattleAnimFunction_3B: ; ce3ff (33:63ff)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functionce406
|
dw Functionce406
|
||||||
dw Functionce412
|
dw Functionce412
|
||||||
|
|
||||||
Functionce406: ; ce406 (33:6406)
|
Functionce406: ; ce406 (33:6406)
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -3544,6 +3576,7 @@ BattleAnimFunction_3E: ; ce43a (33:643a)
|
|||||||
dw Functionce443
|
dw Functionce443
|
||||||
dw Functionce465
|
dw Functionce465
|
||||||
dw Functionce490
|
dw Functionce490
|
||||||
|
|
||||||
Functionce443: ; ce443 (33:6443)
|
Functionce443: ; ce443 (33:6443)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0F
|
ld hl, BATTLEANIMSTRUCT_0F
|
||||||
@@ -3607,6 +3640,7 @@ BattleAnimFunction_40: ; ce49c (33:649c)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functionce4a3
|
dw Functionce4a3
|
||||||
dw Functionce4b0
|
dw Functionce4b0
|
||||||
|
|
||||||
Functionce4a3: ; ce4a3 (33:64a3)
|
Functionce4a3: ; ce4a3 (33:64a3)
|
||||||
call BattleAnim_IncAnonJumptableIndex
|
call BattleAnim_IncAnonJumptableIndex
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -3739,6 +3773,7 @@ BattleAnimFunction_45: ; ce55b (33:655b)
|
|||||||
dw Functionce564
|
dw Functionce564
|
||||||
dw Functionce56e
|
dw Functionce56e
|
||||||
dw Functionce577
|
dw Functionce577
|
||||||
|
|
||||||
Functionce564: ; ce564 (33:6564)
|
Functionce564: ; ce564 (33:6564)
|
||||||
ld d, $18
|
ld d, $18
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
@@ -3779,6 +3814,7 @@ BattleAnimFunction_46: ; ce593 (33:6593)
|
|||||||
.anon_dw
|
.anon_dw
|
||||||
dw Functionce5b3
|
dw Functionce5b3
|
||||||
dw Functionce59a
|
dw Functionce59a
|
||||||
|
|
||||||
Functionce59a: ; ce59a (33:659a)
|
Functionce59a: ; ce59a (33:659a)
|
||||||
ld hl, BATTLEANIMSTRUCT_XCOORD
|
ld hl, BATTLEANIMSTRUCT_XCOORD
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -3850,6 +3886,7 @@ BattleAnimFunction_49: ; ce5ee (33:65ee)
|
|||||||
dw Functionce60a
|
dw Functionce60a
|
||||||
dw Functionce622
|
dw Functionce622
|
||||||
dw Functionce618
|
dw Functionce618
|
||||||
|
|
||||||
Functionce5f9: ; ce5f9 (33:65f9)
|
Functionce5f9: ; ce5f9 (33:65f9)
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -3898,6 +3935,7 @@ BattleAnimFunction_4A: ; ce62f (33:662f)
|
|||||||
dw Functionce648
|
dw Functionce648
|
||||||
dw Functionce65c
|
dw Functionce65c
|
||||||
dw Functionce672
|
dw Functionce672
|
||||||
|
|
||||||
Functionce63a: ; ce63a (33:663a)
|
Functionce63a: ; ce63a (33:663a)
|
||||||
ld hl, BATTLEANIMSTRUCT_0B
|
ld hl, BATTLEANIMSTRUCT_0B
|
||||||
add hl, bc
|
add hl, bc
|
||||||
@@ -4138,24 +4176,24 @@ BattleAnim_Cosine_e: ; ce76b (33:676b)
|
|||||||
call BattleAnim_Cosine
|
call BattleAnim_Cosine
|
||||||
ld e, a
|
ld e, a
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; ce771 (33:6771)
|
; ce771 (33:6771)
|
||||||
|
|
||||||
BattleAnim_AbsSinePrecise: ; ce771
|
BattleAnim_AbsSinePrecise: ; ce771
|
||||||
ld a, e
|
ld a, e
|
||||||
call BattleAnim_Sine
|
call BattleAnim_Sine
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; ce778
|
; ce778
|
||||||
|
|
||||||
BattleAnim_AbsCosinePrecise: ; ce778
|
BattleAnim_AbsCosinePrecise: ; ce778
|
||||||
ld a, e
|
ld a, e
|
||||||
call BattleAnim_Cosine
|
call BattleAnim_Cosine
|
||||||
ld e, l
|
ld e, l
|
||||||
ld d, h
|
ld d, h
|
||||||
ret
|
ret
|
||||||
|
|
||||||
; ce77f
|
; ce77f
|
||||||
|
|
||||||
BattleAnimSineWave: ; ce77f
|
BattleAnimSineWave: ; ce77f
|
||||||
sine_wave 32
|
sine_wave 32
|
||||||
; ce7bf
|
; ce7bf
|
||||||
|
@@ -434,8 +434,6 @@ InitEggMoves: ; 170bf
|
|||||||
; 170e4
|
; 170e4
|
||||||
|
|
||||||
GetEggMove: ; 170e4
|
GetEggMove: ; 170e4
|
||||||
GLOBAL EggMoves
|
|
||||||
|
|
||||||
push bc
|
push bc
|
||||||
ld a, [wEggMonSpecies]
|
ld a, [wEggMonSpecies]
|
||||||
dec a
|
dec a
|
||||||
|
@@ -361,7 +361,7 @@ ParkBall: ; e8a2
|
|||||||
ld d, a
|
ld d, a
|
||||||
push de
|
push de
|
||||||
ld a, [wBattleMonItem]
|
ld a, [wBattleMonItem]
|
||||||
; ld b, a
|
; ld b, a
|
||||||
farcall GetItemHeldEffect
|
farcall GetItemHeldEffect
|
||||||
ld a, b
|
ld a, b
|
||||||
cp HELD_CATCH_CHANCE
|
cp HELD_CATCH_CHANCE
|
||||||
@@ -905,10 +905,6 @@ MoonBallMultiplier:
|
|||||||
; This function is buggy.
|
; This function is buggy.
|
||||||
; Intent: multiply catch rate by 4 if mon evolves with moon stone
|
; Intent: multiply catch rate by 4 if mon evolves with moon stone
|
||||||
; Reality: no boost
|
; Reality: no boost
|
||||||
|
|
||||||
GLOBAL EvosAttacks
|
|
||||||
GLOBAL EvosAttacksPointers
|
|
||||||
|
|
||||||
push bc
|
push bc
|
||||||
ld a, [wTempEnemyMonSpecies]
|
ld a, [wTempEnemyMonSpecies]
|
||||||
dec a
|
dec a
|
||||||
|
@@ -103,8 +103,6 @@ _GetFrontpic: ; 510a5
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
GetFrontpicPointer: ; 510d7
|
GetFrontpicPointer: ; 510d7
|
||||||
GLOBAL PokemonPicPointers, UnownPicPointers
|
|
||||||
|
|
||||||
ld a, [wCurPartySpecies]
|
ld a, [wCurPartySpecies]
|
||||||
cp UNOWN
|
cp UNOWN
|
||||||
jr z, .unown
|
jr z, .unown
|
||||||
@@ -211,7 +209,6 @@ GetMonBackpic: ; 5116c
|
|||||||
push de
|
push de
|
||||||
|
|
||||||
; These are assumed to be at the same address in their respective banks.
|
; These are assumed to be at the same address in their respective banks.
|
||||||
GLOBAL PokemonPicPointers, UnownPicPointers
|
|
||||||
ld hl, PokemonPicPointers ; UnownPicPointers
|
ld hl, PokemonPicPointers ; UnownPicPointers
|
||||||
ld a, b
|
ld a, b
|
||||||
ld d, BANK(PokemonPicPointers)
|
ld d, BANK(PokemonPicPointers)
|
||||||
|
@@ -240,7 +240,7 @@ GetDexEntryPointer: ; 44333
|
|||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.PokedexEntryBanks: ; 44351
|
.PokedexEntryBanks:
|
||||||
db BANK(PokedexEntries1)
|
db BANK(PokedexEntries1)
|
||||||
db BANK(PokedexEntries2)
|
db BANK(PokedexEntries2)
|
||||||
db BANK(PokedexEntries3)
|
db BANK(PokedexEntries3)
|
||||||
|
@@ -702,7 +702,7 @@ PokedexShow_GetDexEntryBank:
|
|||||||
pop hl
|
pop hl
|
||||||
ret
|
ret
|
||||||
|
|
||||||
.PokedexEntryBanks
|
.PokedexEntryBanks:
|
||||||
db BANK(PokedexEntries1)
|
db BANK(PokedexEntries1)
|
||||||
db BANK(PokedexEntries2)
|
db BANK(PokedexEntries2)
|
||||||
db BANK(PokedexEntries3)
|
db BANK(PokedexEntries3)
|
||||||
|
@@ -43,6 +43,6 @@ _Sine:: ; 84d9
|
|||||||
ret
|
ret
|
||||||
|
|
||||||
.sinewave ; 850b
|
.sinewave ; 850b
|
||||||
; A $20-word table representing a sine wave.
|
; A 32-word table representing a sine wave.
|
||||||
; 90 degrees is index $10 at a base amplitude of $100.
|
; sin(90 degrees) is index $10 with an amplitude of $100.
|
||||||
sine_wave 32
|
sine_wave 32
|
||||||
|
Reference in New Issue
Block a user