Skip to content

Commit

Permalink
Fix Evo Skips for Gen 3 Personality Evo
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitZeta committed Sep 24, 2024
1 parent ec441cb commit 110286b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions engine/pokemon/evolve.asm
Original file line number Diff line number Diff line change
Expand Up @@ -374,10 +374,16 @@ EvolveAfterBattle_MasterLoop:

.dont_evolve_check
ld a, b
cp EVOLVE_PV
jr z, .skip_evolution_two_species_parameter_byte
cp EVOLVE_LEVEL
jr z, .skip_evolution_species_parameter_byte
cp EVOLVE_HAPPINESS
jr z, .skip_evolution_species_parameter_byte
jr .skip_evolution_species_parameter_word

.skip_evolution_two_species_parameter_byte
inc hl
.skip_evolution_species_parameter_word
inc hl
.skip_evolution_species_parameter_byte
Expand Down Expand Up @@ -680,10 +686,17 @@ SkipEvolutions::
inc hl
and a
ret z
cp EVOLVE_PV
jr z, .two_extra_skips
cp EVOLVE_LEVEL
jr z, .no_extra_skip
cp EVOLVE_HAPPINESS
jr z, .no_extra_skip
jr .one_extra_skip

.two_extra_skips
inc hl
.one_extra_skip
inc hl
.no_extra_skip
inc hl
Expand All @@ -703,6 +716,8 @@ DetermineEvolutionItemResults::
call GetNextEvoAttackByte
and a
ret z
cp EVOLVE_PV
jr z, .skip_two_species_parameter_byte
cp EVOLVE_LEVEL
jr z, .skip_species_parameter_byte
cp EVOLVE_HAPPINESS
Expand All @@ -719,6 +734,8 @@ DetermineEvolutionItemResults::
ld e, l
ret

.skip_two_species_parameter_byte
inc hl
.skip_species_parameter_word
inc hl
.skip_species_parameter_byte
Expand Down

0 comments on commit 110286b

Please sign in to comment.