internal static string getLocation(bool eggmet, int gameorigin, int locval)
{
if (gameorigin < 13 && gameorigin > 6 && eggmet)
{
if (locval < 2000) return Form1.metHGSS_00000[locval];
if (locval < 3000) return Form1.metHGSS_02000[locval % 2000];
return Form1.metHGSS_03000[locval % 3000];
}
if (gameorigin < 24)
{
if (locval < 30000) return Form1.metBW2_00000[locval];
if (locval < 40000) return Form1.metBW2_30000[locval % 10000 - 1];
if (locval < 60000) return Form1.metBW2_40000[locval % 10000 - 1];
return Form1.metBW2_60000[locval % 10000 - 1];
}
if (gameorigin > 23)
{
if (locval < 30000) return Form1.metXY_00000[locval];
if (locval < 40000) return Form1.metXY_30000[locval % 10000 - 1];
if (locval < 60000) return Form1.metXY_40000[locval % 10000 - 1];
return Form1.metXY_60000[locval % 10000 - 1];
}
return null; // Shouldn't happen.
}
internal static ushort[] getStats(int species, int level, int nature, int form,