diff options
author | Eduardo Alvaro Quezada D'Ottone <eduardo602002@gmail.com> | 2020-07-08 23:10:13 -0400 |
---|---|---|
committer | Eduardo Alvaro Quezada D'Ottone <eduardo602002@gmail.com> | 2020-07-08 23:10:13 -0400 |
commit | 3c5f1b4a23d0567d7a8e337c1d4bab7c46025db8 (patch) | |
tree | ca688abd7c789f6e2d0f2b2b828ff56cf02bc4e9 | |
parent | 38b5ffbf4e91301f8b9ffc867d32ab8eaa4d4c54 (diff) |
Created Capping EV gain to 252. (markdown)
-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 |