You've already forked pokecrystal-board
mirror of
https://gitlab.com/xCrystal/pokecrystal-board.git
synced 2025-04-09 05:44:44 -07:00
Evolution addresses
This commit is contained in:
@@ -21,7 +21,7 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
pop de
|
pop de
|
||||||
pop hl
|
pop hl
|
||||||
|
|
||||||
ld a, [Buffer4]
|
ld a, [wEvolutionCanceled]
|
||||||
and a
|
and a
|
||||||
ret z
|
ret z
|
||||||
|
|
||||||
@@ -30,7 +30,7 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
; 4e607
|
; 4e607
|
||||||
|
|
||||||
.EvolutionAnimation: ; 4e607
|
.EvolutionAnimation: ; 4e607
|
||||||
ld a, $e4
|
ld a, %11100100
|
||||||
ld [rOBP0], a
|
ld [rOBP0], a
|
||||||
|
|
||||||
ld de, MUSIC_NONE
|
ld de, MUSIC_NONE
|
||||||
@@ -48,29 +48,29 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
call WaitBGMap
|
call WaitBGMap
|
||||||
xor a
|
xor a
|
||||||
ld [hBGMapMode], a
|
ld [hBGMapMode], a
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
ld [PlayerHPPal], a
|
ld [PlayerHPPal], a
|
||||||
|
|
||||||
ld c, $0
|
ld c, $0
|
||||||
call .GetSGBLayout
|
call .GetSGBLayout
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld [CurSpecies], a
|
ld [CurSpecies], a
|
||||||
call .PlaceFrontpic
|
call .PlaceFrontpic
|
||||||
|
|
||||||
ld de, VTiles2
|
ld de, VTiles2
|
||||||
ld hl, VTiles2 tile $31
|
ld hl, VTiles2 tile $31
|
||||||
ld bc, $31
|
ld bc, 7 * 7
|
||||||
call Request2bpp
|
call Request2bpp
|
||||||
|
|
||||||
ld a, $31
|
ld a, 7 * 7
|
||||||
ld [wd1ec], a
|
ld [wEvolutionPicOffset], a
|
||||||
call .ReplaceFrontpic
|
call .ReplaceFrontpic
|
||||||
ld a, [Buffer2]
|
ld a, [wEvolutionNewSpecies]
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld [CurSpecies], a
|
ld [CurSpecies], a
|
||||||
call .LoadFrontpic
|
call .LoadFrontpic
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
ld [CurPartySpecies], a
|
ld [CurPartySpecies], a
|
||||||
ld [CurSpecies], a
|
ld [CurSpecies], a
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
call .check_statused
|
call .check_statused
|
||||||
jr c, .skip_cry
|
jr c, .skip_cry
|
||||||
|
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
call PlayCry
|
call PlayCry
|
||||||
|
|
||||||
.skip_cry
|
.skip_cry
|
||||||
@@ -95,13 +95,12 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
jr c, .cancel_evo
|
jr c, .cancel_evo
|
||||||
|
|
||||||
ld a, -7 * 7
|
ld a, -7 * 7
|
||||||
ld [wd1ec], a
|
ld [wEvolutionPicOffset], a
|
||||||
|
|
||||||
call .ReplaceFrontpic
|
call .ReplaceFrontpic
|
||||||
xor a
|
xor a
|
||||||
ld [Buffer4], a
|
ld [wEvolutionCanceled], a
|
||||||
|
|
||||||
ld a, [Buffer2]
|
ld a, [wEvolutionNewSpecies]
|
||||||
ld [PlayerHPPal], a
|
ld [PlayerHPPal], a
|
||||||
|
|
||||||
ld c, $0
|
ld c, $0
|
||||||
@@ -136,9 +135,9 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
|
|
||||||
.cancel_evo
|
.cancel_evo
|
||||||
ld a, $1
|
ld a, $1
|
||||||
ld [Buffer4], a
|
ld [wEvolutionCanceled], a
|
||||||
|
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
ld [PlayerHPPal], a
|
ld [PlayerHPPal], a
|
||||||
|
|
||||||
ld c, $0
|
ld c, $0
|
||||||
@@ -200,10 +199,10 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
|
|
||||||
.Flash: ; 4e741
|
.Flash: ; 4e741
|
||||||
ld a, -7 * 7 ; new stage
|
ld a, -7 * 7 ; new stage
|
||||||
ld [wd1ec], a
|
ld [wEvolutionPicOffset], a
|
||||||
call .ReplaceFrontpic
|
call .ReplaceFrontpic
|
||||||
ld a, 7 * 7 ; previous stage
|
ld a, 7 * 7 ; previous stage
|
||||||
ld [wd1ec], a
|
ld [wEvolutionPicOffset], a
|
||||||
call .ReplaceFrontpic
|
call .ReplaceFrontpic
|
||||||
dec b
|
dec b
|
||||||
jr nz, .Flash
|
jr nz, .Flash
|
||||||
@@ -220,7 +219,7 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
.loop1
|
.loop1
|
||||||
push bc
|
push bc
|
||||||
.loop2
|
.loop2
|
||||||
ld a, [wd1ec]
|
ld a, [wEvolutionPicOffset]
|
||||||
add [hl]
|
add [hl]
|
||||||
ld [hli], a
|
ld [hli], a
|
||||||
dec c
|
dec c
|
||||||
@@ -269,7 +268,7 @@ EvolutionAnimation: ; 4e5e1
|
|||||||
; 4e7a6
|
; 4e7a6
|
||||||
|
|
||||||
.PlayEvolvedSFX: ; 4e7a6
|
.PlayEvolvedSFX: ; 4e7a6
|
||||||
ld a, [Buffer4]
|
ld a, [wEvolutionCanceled]
|
||||||
and a
|
and a
|
||||||
ret nz
|
ret nz
|
||||||
ld de, SFX_EVOLVED
|
ld de, SFX_EVOLVED
|
||||||
|
@@ -29,7 +29,7 @@ EvolveAfterBattle_MasterLoop
|
|||||||
cp $ff
|
cp $ff
|
||||||
jp z, .ReturnToMap
|
jp z, .ReturnToMap
|
||||||
|
|
||||||
ld [Buffer1], a
|
ld [wEvolutionOldSpecies], a
|
||||||
|
|
||||||
push hl
|
push hl
|
||||||
ld a, [CurPartyMon]
|
ld a, [CurPartyMon]
|
||||||
@@ -41,7 +41,7 @@ EvolveAfterBattle_MasterLoop
|
|||||||
and a
|
and a
|
||||||
jp z, EvolveAfterBattle_MasterLoop
|
jp z, EvolveAfterBattle_MasterLoop
|
||||||
|
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
dec a
|
dec a
|
||||||
ld b, 0
|
ld b, 0
|
||||||
ld c, a
|
ld c, a
|
||||||
@@ -204,7 +204,7 @@ EvolveAfterBattle_MasterLoop
|
|||||||
push hl
|
push hl
|
||||||
|
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [Buffer2], a
|
ld [wEvolutionNewSpecies], a
|
||||||
ld a, [CurPartyMon]
|
ld a, [CurPartyMon]
|
||||||
ld hl, PartyMonNicknames
|
ld hl, PartyMonNicknames
|
||||||
call GetNick
|
call GetNick
|
||||||
@@ -240,7 +240,7 @@ EvolveAfterBattle_MasterLoop
|
|||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [CurSpecies], a
|
ld [CurSpecies], a
|
||||||
ld [TempMonSpecies], a
|
ld [TempMonSpecies], a
|
||||||
ld [Buffer2], a
|
ld [wEvolutionNewSpecies], a
|
||||||
ld [wd265], a
|
ld [wd265], a
|
||||||
call GetPokemonName
|
call GetPokemonName
|
||||||
|
|
||||||
@@ -530,7 +530,7 @@ FillMoves: ; 424e1
|
|||||||
ld a, [CurPartyLevel]
|
ld a, [CurPartyLevel]
|
||||||
cp b
|
cp b
|
||||||
jp c, .done
|
jp c, .done
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
and a
|
and a
|
||||||
jr z, .CheckMove
|
jr z, .CheckMove
|
||||||
ld a, [wd002]
|
ld a, [wd002]
|
||||||
@@ -563,7 +563,7 @@ FillMoves: ; 424e1
|
|||||||
ld h, d
|
ld h, d
|
||||||
ld l, e
|
ld l, e
|
||||||
call ShiftMoves
|
call ShiftMoves
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
and a
|
and a
|
||||||
jr z, .ShiftedMove
|
jr z, .ShiftedMove
|
||||||
push de
|
push de
|
||||||
@@ -580,7 +580,7 @@ FillMoves: ; 424e1
|
|||||||
.LearnMove:
|
.LearnMove:
|
||||||
ld a, [hl]
|
ld a, [hl]
|
||||||
ld [de], a
|
ld [de], a
|
||||||
ld a, [Buffer1]
|
ld a, [wEvolutionOldSpecies]
|
||||||
and a
|
and a
|
||||||
jr z, .NextMove
|
jr z, .NextMove
|
||||||
push hl
|
push hl
|
||||||
|
5
wram.asm
5
wram.asm
@@ -2037,14 +2037,17 @@ wCurHPAnimHighHP:: db ; d1f6
|
|||||||
ds wCurHPAnimMaxHP - @
|
ds wCurHPAnimMaxHP - @
|
||||||
|
|
||||||
MagikarpLength::
|
MagikarpLength::
|
||||||
|
wEvolutionOldSpecies::
|
||||||
Buffer1:: ; d1ea
|
Buffer1:: ; d1ea
|
||||||
ds 1
|
ds 1
|
||||||
MovementType::
|
MovementType::
|
||||||
|
wEvolutionNewSpecies::
|
||||||
Buffer2:: ; d1eb
|
Buffer2:: ; d1eb
|
||||||
ds 1
|
ds 1
|
||||||
|
wEvolutionPicOffset::
|
||||||
Buffer3::
|
Buffer3::
|
||||||
wd1ec:: ds 1
|
wd1ec:: ds 1
|
||||||
|
wEvolutionCanceled::
|
||||||
Buffer4::
|
Buffer4::
|
||||||
wd1ed:: ds 1
|
wd1ed:: ds 1
|
||||||
Buffer5::
|
Buffer5::
|
||||||
|
Reference in New Issue
Block a user