diff options
| -rw-r--r-- | Replace-stat-experience-with-EVs.md | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/Replace-stat-experience-with-EVs.md b/Replace-stat-experience-with-EVs.md index 6492e71..83421ea 100644 --- a/Replace-stat-experience-with-EVs.md +++ b/Replace-stat-experience-with-EVs.md @@ -859,14 +859,20 @@ VitaminEffect: + pop bc + pop af ++ ld a, e ++ and a ++ jr z, NoEffectMessage + add hl, bc ld a, [hl] cp 100 jr nc, NoEffectMessage - -+ ld a, e -+ and a -+ jr z, NoEffectMessage + +- add 10 ++ add e + ld [hl], a + call UpdateStatsAfterItem + ... ``` This way, not only the limit of 510 EVs is implemented, but it will also display a message if the total EVs has reached the max limit. |
