summaryrefslogtreecommitdiff
path: root/engine/pokemon/evolve.asm
diff options
context:
space:
mode:
Diffstat (limited to 'engine/pokemon/evolve.asm')
-rw-r--r--engine/pokemon/evolve.asm50
1 files changed, 14 insertions, 36 deletions
diff --git a/engine/pokemon/evolve.asm b/engine/pokemon/evolve.asm
index 291bd79b0..571cff0b8 100644
--- a/engine/pokemon/evolve.asm
+++ b/engine/pokemon/evolve.asm
@@ -1,4 +1,4 @@
-EvolvePokemon: ; 421d8
+EvolvePokemon:
ld hl, wEvolvableFlags
xor a
ld [hl], a
@@ -6,7 +6,7 @@ EvolvePokemon: ; 421d8
ld c, a
ld b, SET_FLAG
call EvoFlagAction
-EvolveAfterBattle: ; 421e6
+EvolveAfterBattle:
xor a
ld [wMonTriedToEvolve], a
dec a
@@ -87,7 +87,6 @@ EvolveAfterBattle_MasterLoop:
cp EVOLVE_HAPPINESS
jr z, .happiness
-
; EVOLVE_STAT
ld a, [wTempMonLevel]
cp [hl]
@@ -116,7 +115,6 @@ EvolveAfterBattle_MasterLoop:
inc hl
jr .proceed
-
.happiness
ld a, [wTempMonHappiness]
cp HAPPINESS_TO_EVOLVE
@@ -143,7 +141,6 @@ EvolveAfterBattle_MasterLoop:
jp z, .dont_evolve_3
jr .proceed
-
.trade
ld a, [wLinkMode]
and a
@@ -169,7 +166,6 @@ EvolveAfterBattle_MasterLoop:
ld [wTempMonItem], a
jr .proceed
-
.item
ld a, [hli]
ld b, a
@@ -185,7 +181,6 @@ EvolveAfterBattle_MasterLoop:
jp nz, .dont_evolve_3
jr .proceed
-
.level
ld a, [hli]
ld b, a
@@ -323,7 +318,6 @@ EvolveAfterBattle_MasterLoop:
ld l, e
ld h, d
jp EvolveAfterBattle_MasterLoop
-; 423f8
.dont_evolve_1
inc hl
@@ -349,9 +343,8 @@ EvolveAfterBattle_MasterLoop:
and a
call nz, RestartMapMusic
ret
-; 42414
-UpdateSpeciesNameIfNotNicknamed: ; 42414
+UpdateSpeciesNameIfNotNicknamed:
ld a, [wCurSpecies]
push af
ld a, [wBaseDexNo]
@@ -382,17 +375,15 @@ UpdateSpeciesNameIfNotNicknamed: ; 42414
pop de
ld bc, MON_NAME_LENGTH
jp CopyBytes
-; 42454
-CancelEvolution: ; 42454
+CancelEvolution:
ld hl, Text_StoppedEvolving
call PrintText
call ClearTileMap
pop hl
jp EvolveAfterBattle_MasterLoop
-; 42461
-IsMonHoldingEverstone: ; 42461
+IsMonHoldingEverstone:
push hl
ld a, [wCurPartyMon]
ld hl, wPartyMon1Item
@@ -402,34 +393,28 @@ IsMonHoldingEverstone: ; 42461
cp EVERSTONE
pop hl
ret
-; 42473
-Text_CongratulationsYourPokemon: ; 0x42473
+Text_CongratulationsYourPokemon:
; Congratulations! Your @ @
text_jump UnknownText_0x1c4b92
db "@"
-; 0x42478
-Text_EvolvedIntoPKMN: ; 0x42478
+Text_EvolvedIntoPKMN:
; evolved into @ !
text_jump UnknownText_0x1c4baf
db "@"
-; 0x4247d
-Text_StoppedEvolving: ; 0x4247d
+Text_StoppedEvolving:
; Huh? @ stopped evolving!
text_jump UnknownText_0x1c4bc5
db "@"
-; 0x42482
-Text_WhatEvolving: ; 0x42482
+Text_WhatEvolving:
; What? @ is evolving!
text_jump UnknownText_0x1c4be3
db "@"
-; 0x42487
-
-LearnLevelMoves: ; 42487
+LearnLevelMoves:
ld a, [wd265]
ld [wCurPartySpecies], a
dec a
@@ -492,10 +477,8 @@ LearnLevelMoves: ; 42487
ld a, [wCurPartySpecies]
ld [wd265], a
ret
-; 424e1
-
-FillMoves: ; 424e1
+FillMoves:
; Fill in moves at de for wCurPartySpecies at wCurPartyLevel
push hl
@@ -604,9 +587,8 @@ FillMoves: ; 424e1
pop de
pop hl
ret
-; 4256e
-ShiftMoves: ; 4256e
+ShiftMoves:
ld c, NUM_MOVES - 1
.loop
inc de
@@ -615,18 +597,15 @@ ShiftMoves: ; 4256e
dec c
jr nz, .loop
ret
-; 42577
-
-EvoFlagAction: ; 42577
+EvoFlagAction:
push de
ld d, $0
predef SmallFarFlagAction
pop de
ret
-; 42581
-GetPreEvolution: ; 42581
+GetPreEvolution:
; Find the first mon to evolve into wCurPartySpecies.
; Return carry and the new species in wCurPartySpecies
@@ -673,4 +652,3 @@ GetPreEvolution: ; 42581
ld [wCurPartySpecies], a
scf
ret
-; 425b1