mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2024-11-16 11:27:33 -08:00
Minor battle tower fixes
This commit is contained in:
parent
cf1c505555
commit
cfd432f468
@ -13,6 +13,7 @@ Unknown_170470:
|
|||||||
db $27
|
db $27
|
||||||
db $42
|
db $42
|
||||||
db $24
|
db $24
|
||||||
|
.end
|
||||||
|
|
||||||
Unknown_17047e:
|
Unknown_17047e:
|
||||||
db $03, 4
|
db $03, 4
|
||||||
|
@ -497,7 +497,7 @@ Function17042c:
|
|||||||
ld a, [hli]
|
ld a, [hli]
|
||||||
and a
|
and a
|
||||||
jr z, .empty
|
jr z, .empty
|
||||||
cp 15
|
cp (Unknown_170470.end - Unknown_170470) + 1
|
||||||
jr nc, .copy_data
|
jr nc, .copy_data
|
||||||
|
|
||||||
push hl
|
push hl
|
||||||
@ -510,7 +510,7 @@ Function17042c:
|
|||||||
pop hl
|
pop hl
|
||||||
|
|
||||||
; If Unknown_170470[a-1] <= b, overwrite the current trainer's data
|
; If Unknown_170470[a-1] <= b, overwrite the current trainer's data
|
||||||
; with Unknown17047e, and exit the inner loop.
|
; with Unknown_17047e, and exit the inner loop.
|
||||||
cp b
|
cp b
|
||||||
jr c, .copy_data
|
jr c, .copy_data
|
||||||
jr z, .copy_data
|
jr z, .copy_data
|
||||||
@ -518,9 +518,9 @@ Function17042c:
|
|||||||
|
|
||||||
.empty
|
.empty
|
||||||
; If a == 0 and b >= $fc, overwrite the current trainer's data with
|
; If a == 0 and b >= $fc, overwrite the current trainer's data with
|
||||||
; Unknown17047e, and exit the inner loop.
|
; Unknown_17047e, and exit the inner loop.
|
||||||
ld a, b
|
ld a, b
|
||||||
cp $fc
|
cp NUM_POKEMON + 1
|
||||||
jr nc, .copy_data
|
jr nc, .copy_data
|
||||||
|
|
||||||
.next_iteration
|
.next_iteration
|
||||||
|
Loading…
Reference in New Issue
Block a user