summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKDLPro <38602758+KDLPro@users.noreply.github.com>2021-04-02 18:41:41 +0800
committerKDLPro <38602758+KDLPro@users.noreply.github.com>2021-04-02 18:41:41 +0800
commitae502971a4f7c1e6503a548411baa378e6f802e2 (patch)
tree14e0a1d50b05cd41cc03d3c246964657a2751d0e
parent04eb7cd235dcd25e7cbec89e63f4b22dc613edab (diff)
edit display
-rw-r--r--Replace-stat-experience-with-EVs.md6
1 files changed, 4 insertions, 2 deletions
diff --git a/Replace-stat-experience-with-EVs.md b/Replace-stat-experience-with-EVs.md
index 6e48028..6ee49d7 100644
--- a/Replace-stat-experience-with-EVs.md
+++ b/Replace-stat-experience-with-EVs.md
@@ -717,7 +717,8 @@ First, edit [constants/pokemon_data_constants.asm](../blob/master/constants/poke
```diff
; significant EV values
MAX_EV EQU 252
-+ MAX_TOTAL_EV EQU 510```
++ MAX_TOTAL_EV EQU 510
+```
Next edit `GiveExperiencePoints` in [engine/battle/core.asm](../blob/master/engine/battle/core.asm) again:
@@ -789,7 +790,8 @@ Next edit `GiveExperiencePoints` in [engine/battle/core.asm](../blob/master/engi
+ ret nz
+ ld a, c
+ cp LOW(MAX_TOTAL_EV)
-+ ret```
++ ret
+```
What this does is first, count the EVs your Pokémon currently have, then add the EVs you would normally gain. If the total EVs after the battle is greater than 510, decrease the EVs you gained in this battle until the total EVs after the battle is 510.