Skip to content

Commit

Permalink
Merge branch 'core' into gen3
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitZeta committed Sep 24, 2024
1 parent 425342c commit ec441cb
Showing 1 changed file with 7 additions and 10 deletions.
17 changes: 7 additions & 10 deletions engine/pokemon/evolve.asm
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ EvolveAfterBattle_MasterLoop:
ld b, a

cp EVOLVE_TRADE
jmp z, .trade
jr z, .trade

ld a, [wLinkMode]
and a
Expand Down Expand Up @@ -111,7 +111,7 @@ EvolveAfterBattle_MasterLoop:
call GetNextEvoAttackByte
cp c
jmp nz, .skip_evolution_species
jr .proceed
jmp .proceed

.happiness
ld a, [wTempMonHappiness]
Expand All @@ -123,15 +123,15 @@ EvolveAfterBattle_MasterLoop:

call GetNextEvoAttackByte
cp TR_ANYTIME
jr z, .proceed
jmp z, .proceed
cp TR_MORNDAY
jr z, .happiness_daylight

; TR_EVENITE
ld a, [wTimeOfDay]
cp NITE_F
jmp c, .skip_evolution_species ; MORN_F or DAY_F < NITE_F
jr .proceed
jmp .proceed

.happiness_daylight
ld a, [wTimeOfDay]
Expand Down Expand Up @@ -177,14 +177,11 @@ EvolveAfterBattle_MasterLoop:
jr .proceed

.pv
call GetNextEvoAttackByte
ld b, a
ld a, [wTempMonLevel]
cp b
jmp c, .skip_evolution_species
call GetEvoLevel
jmp c, .skip_evolution_species_parameter_word

call IsMonHoldingEverstone
jmp z, .skip_evolution_species_parameter
jmp z, .skip_evolution_species_parameter_word

push hl

Expand Down

0 comments on commit ec441cb

Please sign in to comment.