Skip to content

Commit

Permalink
Replace hardcoded numbers for stats (#1073)
Browse files Browse the repository at this point in the history
  • Loading branch information
Idain committed Aug 21, 2023
1 parent fceffda commit 5db85ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions engine/battle/effect_commands.asm
Original file line number Diff line number Diff line change
Expand Up @@ -4161,22 +4161,22 @@ RaiseStat:
add hl, bc
ld b, [hl]
inc b
ld a, $d
ld a, MAX_STAT_LEVEL
cp b
jp c, .cant_raise_stat
ld a, [wLoweredStat]
and $f0
jr z, .got_num_stages
inc b
ld a, $d
ld a, MAX_STAT_LEVEL
cp b
jr nc, .got_num_stages
ld b, a
.got_num_stages
ld [hl], b
push hl
ld a, c
cp $5
cp ACCURACY
jr nc, .done_calcing_stats
ld hl, wBattleMonStats + 1
ld de, wPlayerStats
Expand Down Expand Up @@ -4684,7 +4684,7 @@ LowerStat:
.got_num_stages
ld [hl], b
ld a, c
cp 5
cp ACCURACY
jr nc, .accuracy_evasion

push hl
Expand Down

0 comments on commit 5db85ba

Please sign in to comment.