- 7
- Posts
- 8
- Years
- Seen Feb 10, 2025
In the interest of simplicity, I wanted to remove EVs and IVs from the calculation of every Pokémon's stats so that they're only determined by their base stats, nature, and level.
The fix seemed simple enough as I went into src/pokemon.c and changed the lines:
to:
The problem is that when I look at a Pokémon with perfect IVs vs a Pokémon with no IVs in their summary screens, there is still a difference in the stats. Where else should I be looking? Thanks in advance.
The fix seemed simple enough as I went into src/pokemon.c and changed the lines:
Code:
#define CALC_STAT(base, iv, ev, statIndex, field)
{
u8 baseStat = gSpeciesInfo[species].base;
s32 n = (((2 * baseStat + iv + ev / 4) * level) / 100) + 5;
Code:
#define CALC_STAT(base, statIndex, field)
{
u8 baseStat = gSpeciesInfo[species].base;
s32 n = (((baseStat / 2) * level) / 100) + 5;