Quote:
Originally Posted by Chill 'Doof
Uh, hey, so how exactly do I do that modification? I'm kinda bad at editing code, but I can modify basic stuff and all.
|
There are a couple ways to do it but one quick and hacky way is to modify the pokemon generation code since that will apply to all types of mons.
src/pokemon.c
Code:
@@ -1715,7 +1715,6 @@ void CreateMon(struct Pokemon *mon, u16 species, u8 level, u8 fixedIV, u8 hasFix
u32 arg;
ZeroMonData(mon);
CreateBoxMon(&mon->box, species, level, fixedIV, hasFixedPersonality, fixedPersonality, otIdType, fixedOtId);
- SetMonData(mon, MON_DATA_LEVEL, &level);
arg = 255;
SetMonData(mon, MON_DATA_MAIL, &arg);
CalculateMonStats(mon);
@@ -1727,7 +1726,7 @@ void CreateBoxMon(struct BoxPokemon *boxMon, u16 species, u8 level, u8 fixedIV,
u32 personality;
u32 value;
u16 checksum;
-
+ level = 1;
ZeroBoxMonData(boxMon);
if (hasFixedPersonality)