diff options
author | yenatch <yenatch@gmail.com> | 2017-12-24 20:29:55 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-12-24 20:29:55 -0500 |
commit | c2a7216d9b8689591ede817015bf96f263396bb8 (patch) | |
tree | 008635aac62c3fdbb446453d308c2255fb0554d9 /battle/effect_commands.asm | |
parent | 0b8b6f9259bedacad55bb4667de5b2bbe6eafda7 (diff) | |
parent | c6b12b07b302b82765181b2521e1e0f2ca5f7725 (diff) |
Merge pull request #424 from roukaour/master
Rename a routine and some maps; remove all code from main.asm
Diffstat (limited to 'battle/effect_commands.asm')
-rw-r--r-- | battle/effect_commands.asm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/battle/effect_commands.asm b/battle/effect_commands.asm index 66788bd6a..86b8cc080 100644 --- a/battle/effect_commands.asm +++ b/battle/effect_commands.asm @@ -5651,10 +5651,10 @@ CheckIfStatCanBeRaised: ; 361ef .no_carry pop bc ld a, [hld] - sub 999 % $100 + sub MAX_STAT_VALUE % $100 jr nz, .not_already_max ld a, [hl] - sbc 999 / $100 + sbc MAX_STAT_VALUE / $100 jp z, .stats_already_max .not_already_max ld a, [hBattleTurn] @@ -6417,14 +6417,14 @@ CalcStats: ; 3661d .check_maxed_out ld a, [hQuotient + 2] - cp 999 % $100 + cp MAX_STAT_VALUE % $100 ld a, b - sbc 999 / $100 + sbc MAX_STAT_VALUE / $100 jr c, .not_maxed_out - ld a, 999 % $100 + ld a, MAX_STAT_VALUE % $100 ld [hQuotient + 2], a - ld a, 999 / $100 + ld a, MAX_STAT_VALUE / $100 ld [hQuotient + 1], a .not_maxed_out |