diff options
author | yenatch <yenatch@gmail.com> | 2018-07-17 18:16:12 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-17 18:16:12 -0400 |
commit | 3e14c1f26e91b1fc1d18eed389518ae8454e938f (patch) | |
tree | 64db6e9f438a62248ef0f0fe8e874ca6cf94b720 /engine/pokemon/move_mon.asm | |
parent | 89c2646ccaa2c9a0afb358c1d9738e9bb0d42c97 (diff) | |
parent | b23f0b2bdaa993f17d8312bcde5f2b8a59ef9c90 (diff) |
Merge pull request #539 from Rangi42/master
[RTM] Miscellaneous reorganization fixes
Diffstat (limited to 'engine/pokemon/move_mon.asm')
-rw-r--r-- | engine/pokemon/move_mon.asm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/pokemon/move_mon.asm b/engine/pokemon/move_mon.asm index 7074dafd8..128bbf200 100644 --- a/engine/pokemon/move_mon.asm +++ b/engine/pokemon/move_mon.asm @@ -1403,7 +1403,7 @@ CalcMonStats: ; hl is the path to the Stat EXP ; de points to where the final stats will be saved - ld c, $0 + ld c, STAT_HP - 1 ; first stat .loop inc c call CalcMonStatC @@ -1414,7 +1414,7 @@ CalcMonStats: ld [de], a inc de ld a, c - cp STAT_SDEF + cp STAT_SDEF ; last stat jr nz, .loop ret @@ -1434,14 +1434,14 @@ CalcMonStatC: push hl ld hl, wBaseStats dec hl ; has to be decreased, because 'c' begins with 1 - ld b, $0 + ld b, 0 add hl, bc ld a, [hl] ld e, a pop hl push hl ld a, c - cp STAT_SDEF + cp STAT_SDEF ; last stat jr nz, .not_spdef dec hl dec hl |