summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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.