internal static int getLevel(int species, ref uint exp)
{
if (exp == 0) { return 1; }
PersonalParser.Personal MonData = PersonalGetter.GetPersonal(species);
int growth = MonData.EXPGrowth;
DataTable table = ExpTable();
// Iterate upwards to find the level above our current level
int tl = 0; // Initial Level, immediately incremented before loop.
while ((uint)table.Rows[++tl][growth + 1] <= exp)
{
if (tl != 100) continue;
exp = getEXP(100, species); // Fix EXP
return 100;
// After we find the level above ours, we're done.
}
return --tl;
}
internal static bool getIsShiny(uint PID, uint TID, uint SID)