Add gamestring refs for Gen7 report

Adds gen2 as well.
Closes #482
This commit is contained in:
Kurt
2016-11-23 20:24:46 -08:00
parent ae8280bb22
commit c38f3cb216

View File

@@ -323,6 +323,8 @@ public static string getLocation(PKM pk, bool eggmet)
int locval = eggmet ? pk.Egg_Location : pk.Met_Location;
if (pk.Format == 2)
return Main.GameStrings.metGSC_00000[locval];
if (pk.Format == 3)
return Main.GameStrings.metRSEFRLG_00000[locval%0x100];
if (pk.Gen4 && (eggmet || pk.Format == 4))
@@ -345,7 +347,14 @@ public static string getLocation(PKM pk, bool eggmet)
if (locval < 60000) return Main.GameStrings.metXY_40000[locval % 10000 - 1];
return Main.GameStrings.metXY_60000[locval % 10000 - 1];
}
return null; // Shouldn't happen.
if (pk.Gen7 || pk.Format <= 7)
{
if (locval < 30000) return Main.GameStrings.metSM_00000[locval];
if (locval < 40000) return Main.GameStrings.metSM_30000[locval % 10000 - 1];
if (locval < 60000) return Main.GameStrings.metSM_40000[locval % 10000 - 1];
return Main.GameStrings.metSM_60000[locval % 10000 - 1];
}
return null; // Shouldn't happen for gen 3+
}
public static string[] getQRText(PKM pkm)
{