diff options
-rw-r--r-- | Capping-EV-gain-to-252..md | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Capping-EV-gain-to-252..md b/Capping-EV-gain-to-252..md new file mode 100644 index 0000000..eff42ee --- /dev/null +++ b/Capping-EV-gain-to-252..md @@ -0,0 +1,16 @@ +From Gen VI onwards, the max Effort Value of a stat was changed from 255 to 252. +To change this, go to the `MonGainEVs` function in `src\pokemon.c`: + +```c +... +if (evs[i] + (s16)evIncrease > 255) +{ + int val1 = (s16)evIncrease + 255; + int val2 = evs[i] + evIncrease; + evIncrease = val1 - val2; +} +... +``` +And change both `255` to `252`. + +That's it!
\ No newline at end of file |