- 55
- Posts
- 2
- Years
- Seen Apr 28, 2025
REMOVING LEVEL FROM COMBAT STATISTICS EMERALD
ALTERING DAMAGE
Open src/battle_util.c and find
Replace gBattleMons[battlerAtk].level with a number of your choice, all damage will use this number in place of the mons level.
ALTERING STATS
Open src/pokemon.c and find
You can then replace level with a static number as above, though mine was altered to
to keep it simpler to calculate.
To alter HP find
and change level again. Or to allow some kind of growth change the formula to
which will give exactly 1 HP per level (plus EVs).
(Apologies for the formatting, forum formatting is not my forte)
ALTERING DAMAGE
Open src/battle_util.c and find
Code:
dmg = ((gBattleMons[battlerAtk].level * 2) / 5) + 2;
Replace gBattleMons[battlerAtk].level with a number of your choice, all damage will use this number in place of the mons level.
ALTERING STATS
Open src/pokemon.c and find
Code:
s32 n = (((2 * baseStat + iv + ev / 4) * level) / 100) + 5;
You can then replace level with a static number as above, though mine was altered to
Code:
(((baseStat + iv + ev / 4))) + 5;
To alter HP find
Code:
newMaxHP = (((n + hpEV / 4) * level) / 100) + level + 10;
Code:
newMaxHP = (((n + hpEV / 4))) + level + 10;
(Apologies for the formatting, forum formatting is not my forte)