2018-03-30 08:02:22 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
|
|
namespace PKHeX.Core
|
|
|
|
|
{
|
|
|
|
|
public static class GameData
|
|
|
|
|
{
|
|
|
|
|
public static Learnset[] GetLearnsets(GameVersion game) => Learnsets[game];
|
|
|
|
|
public static PersonalTable GetPersonal(GameVersion game) => Personal[game];
|
|
|
|
|
|
2020-12-22 01:17:56 +00:00
|
|
|
|
private static readonly Dictionary<GameVersion, Learnset[]> Learnsets = new()
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{
|
|
|
|
|
{ GameVersion.RD, Legal.LevelUpRB },
|
|
|
|
|
{ GameVersion.BU, Legal.LevelUpRB },
|
|
|
|
|
{ GameVersion.GN, Legal.LevelUpRB },
|
|
|
|
|
{ GameVersion.YW, Legal.LevelUpY },
|
|
|
|
|
{ GameVersion.GD, Legal.LevelUpGS },
|
|
|
|
|
{ GameVersion.SV, Legal.LevelUpGS },
|
|
|
|
|
{ GameVersion.C, Legal.LevelUpC },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.R, Legal.LevelUpRS },
|
|
|
|
|
{ GameVersion.S, Legal.LevelUpRS },
|
|
|
|
|
{ GameVersion.E, Legal.LevelUpE },
|
|
|
|
|
{ GameVersion.FR, Legal.LevelUpFR },
|
|
|
|
|
{ GameVersion.LG, Legal.LevelUpLG },
|
|
|
|
|
{ GameVersion.COLO, Legal.LevelUpE },
|
|
|
|
|
{ GameVersion.XD, Legal.LevelUpE },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.D, Legal.LevelUpDP },
|
|
|
|
|
{ GameVersion.P, Legal.LevelUpDP },
|
|
|
|
|
{ GameVersion.Pt, Legal.LevelUpPt },
|
|
|
|
|
{ GameVersion.HG, Legal.LevelUpHGSS },
|
|
|
|
|
{ GameVersion.SS, Legal.LevelUpHGSS },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.B, Legal.LevelUpBW },
|
|
|
|
|
{ GameVersion.W, Legal.LevelUpBW },
|
|
|
|
|
{ GameVersion.B2, Legal.LevelUpB2W2 },
|
|
|
|
|
{ GameVersion.W2, Legal.LevelUpB2W2 },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.X, Legal.LevelUpXY },
|
|
|
|
|
{ GameVersion.Y, Legal.LevelUpXY },
|
|
|
|
|
{ GameVersion.AS, Legal.LevelUpAO },
|
|
|
|
|
{ GameVersion.OR, Legal.LevelUpAO },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.SN, Legal.LevelUpSM },
|
|
|
|
|
{ GameVersion.MN, Legal.LevelUpSM },
|
|
|
|
|
{ GameVersion.US, Legal.LevelUpUSUM },
|
|
|
|
|
{ GameVersion.UM, Legal.LevelUpUSUM },
|
2018-11-16 01:37:25 +00:00
|
|
|
|
{ GameVersion.GO, Legal.LevelUpGG },
|
2018-11-12 06:49:17 +00:00
|
|
|
|
{ GameVersion.GP, Legal.LevelUpGG },
|
|
|
|
|
{ GameVersion.GE, Legal.LevelUpGG },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
|
2019-09-23 23:56:47 +00:00
|
|
|
|
{ GameVersion.SW, Legal.LevelUpSWSH },
|
|
|
|
|
{ GameVersion.SH, Legal.LevelUpSWSH },
|
|
|
|
|
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.RB, Legal.LevelUpRB },
|
|
|
|
|
{ GameVersion.RBY, Legal.LevelUpY },
|
2018-06-13 01:35:56 +00:00
|
|
|
|
{ GameVersion.GS, Legal.LevelUpGS },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.GSC, Legal.LevelUpC },
|
|
|
|
|
{ GameVersion.RS, Legal.LevelUpRS },
|
2018-06-18 03:49:03 +00:00
|
|
|
|
{ GameVersion.RSE, Legal.LevelUpRS },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.FRLG, Legal.LevelUpE },
|
|
|
|
|
{ GameVersion.CXD, Legal.LevelUpE },
|
|
|
|
|
{ GameVersion.DP, Legal.LevelUpDP },
|
2018-06-18 03:49:03 +00:00
|
|
|
|
{ GameVersion.DPPt, Legal.LevelUpDP },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.HGSS, Legal.LevelUpHGSS },
|
|
|
|
|
{ GameVersion.BW, Legal.LevelUpBW },
|
|
|
|
|
{ GameVersion.B2W2, Legal.LevelUpB2W2 },
|
|
|
|
|
{ GameVersion.XY, Legal.LevelUpXY },
|
|
|
|
|
{ GameVersion.ORAS, Legal.LevelUpAO },
|
|
|
|
|
{ GameVersion.SM, Legal.LevelUpSM },
|
|
|
|
|
{ GameVersion.USUM, Legal.LevelUpUSUM },
|
|
|
|
|
|
2018-11-12 06:49:17 +00:00
|
|
|
|
{ GameVersion.GG, Legal.LevelUpGG },
|
2019-09-23 23:56:47 +00:00
|
|
|
|
{ GameVersion.SWSH, Legal.LevelUpSWSH },
|
2018-11-12 06:49:17 +00:00
|
|
|
|
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.Gen1, Legal.LevelUpY },
|
|
|
|
|
{ GameVersion.Gen2, Legal.LevelUpC },
|
|
|
|
|
{ GameVersion.Gen3, Legal.LevelUpE },
|
|
|
|
|
{ GameVersion.Gen4, Legal.LevelUpHGSS },
|
|
|
|
|
{ GameVersion.Gen5, Legal.LevelUpB2W2 },
|
|
|
|
|
{ GameVersion.Gen6, Legal.LevelUpAO },
|
|
|
|
|
{ GameVersion.Gen7, Legal.LevelUpSM },
|
2020-08-07 01:24:20 +00:00
|
|
|
|
{ GameVersion.Gen7b, Legal.LevelUpGG },
|
2019-09-23 23:56:47 +00:00
|
|
|
|
{ GameVersion.Gen8, Legal.LevelUpSWSH },
|
2019-01-14 02:12:31 +00:00
|
|
|
|
|
|
|
|
|
{ GameVersion.Stadium, Legal.LevelUpY },
|
|
|
|
|
{ GameVersion.Stadium2, Legal.LevelUpGS },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
};
|
2018-07-29 20:27:48 +00:00
|
|
|
|
|
2020-12-22 01:17:56 +00:00
|
|
|
|
private static readonly Dictionary<GameVersion, PersonalTable> Personal = new()
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{
|
|
|
|
|
{ GameVersion.RD, PersonalTable.RB },
|
|
|
|
|
{ GameVersion.BU, PersonalTable.RB },
|
|
|
|
|
{ GameVersion.GN, PersonalTable.RB },
|
|
|
|
|
{ GameVersion.YW, PersonalTable.Y },
|
|
|
|
|
{ GameVersion.GD, PersonalTable.GS },
|
|
|
|
|
{ GameVersion.SV, PersonalTable.GS },
|
|
|
|
|
{ GameVersion.C, PersonalTable.C },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.R, PersonalTable.RS },
|
|
|
|
|
{ GameVersion.S, PersonalTable.RS },
|
|
|
|
|
{ GameVersion.E, PersonalTable.E },
|
|
|
|
|
{ GameVersion.FR, PersonalTable.FR },
|
|
|
|
|
{ GameVersion.LG, PersonalTable.LG },
|
|
|
|
|
{ GameVersion.COLO, PersonalTable.E },
|
|
|
|
|
{ GameVersion.XD, PersonalTable.E },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.D, PersonalTable.DP },
|
|
|
|
|
{ GameVersion.P, PersonalTable.DP },
|
|
|
|
|
{ GameVersion.Pt, PersonalTable.Pt },
|
|
|
|
|
{ GameVersion.HG, PersonalTable.HGSS },
|
|
|
|
|
{ GameVersion.SS, PersonalTable.HGSS },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.B, PersonalTable.BW },
|
|
|
|
|
{ GameVersion.W, PersonalTable.BW },
|
|
|
|
|
{ GameVersion.B2, PersonalTable.B2W2 },
|
|
|
|
|
{ GameVersion.W2, PersonalTable.B2W2 },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.X, PersonalTable.XY },
|
|
|
|
|
{ GameVersion.Y, PersonalTable.XY },
|
|
|
|
|
{ GameVersion.AS, PersonalTable.AO },
|
|
|
|
|
{ GameVersion.OR, PersonalTable.AO },
|
|
|
|
|
|
|
|
|
|
{ GameVersion.SN, PersonalTable.SM },
|
|
|
|
|
{ GameVersion.MN, PersonalTable.SM },
|
|
|
|
|
{ GameVersion.US, PersonalTable.USUM },
|
|
|
|
|
{ GameVersion.UM, PersonalTable.USUM },
|
2018-11-16 01:37:25 +00:00
|
|
|
|
{ GameVersion.GO, PersonalTable.GG },
|
2018-11-12 06:49:17 +00:00
|
|
|
|
{ GameVersion.GP, PersonalTable.GG },
|
|
|
|
|
{ GameVersion.GE, PersonalTable.GG },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
|
2019-09-23 23:56:47 +00:00
|
|
|
|
{ GameVersion.SW, PersonalTable.SWSH },
|
|
|
|
|
{ GameVersion.SH, PersonalTable.SWSH },
|
|
|
|
|
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.RB, PersonalTable.RB },
|
|
|
|
|
{ GameVersion.RBY, PersonalTable.Y },
|
2018-06-13 01:35:56 +00:00
|
|
|
|
{ GameVersion.GS, PersonalTable.GS },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.GSC, PersonalTable.C },
|
|
|
|
|
{ GameVersion.RS, PersonalTable.RS },
|
2018-06-18 03:49:03 +00:00
|
|
|
|
{ GameVersion.RSE, PersonalTable.RS },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.FRLG, PersonalTable.E },
|
|
|
|
|
{ GameVersion.CXD, PersonalTable.E },
|
|
|
|
|
{ GameVersion.DP, PersonalTable.DP },
|
2018-06-18 03:49:03 +00:00
|
|
|
|
{ GameVersion.DPPt, PersonalTable.DP },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.HGSS, PersonalTable.HGSS },
|
|
|
|
|
{ GameVersion.BW, PersonalTable.BW },
|
|
|
|
|
{ GameVersion.B2W2, PersonalTable.B2W2 },
|
|
|
|
|
{ GameVersion.XY, PersonalTable.XY },
|
|
|
|
|
{ GameVersion.ORAS, PersonalTable.AO },
|
|
|
|
|
{ GameVersion.SM, PersonalTable.SM },
|
|
|
|
|
{ GameVersion.USUM, PersonalTable.USUM },
|
2019-09-23 23:56:47 +00:00
|
|
|
|
{ GameVersion.SWSH, PersonalTable.SWSH },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
|
2018-11-12 06:49:17 +00:00
|
|
|
|
{ GameVersion.GG, PersonalTable.GG },
|
|
|
|
|
|
2018-03-30 08:02:22 +00:00
|
|
|
|
{ GameVersion.Gen1, PersonalTable.Y },
|
|
|
|
|
{ GameVersion.Gen2, PersonalTable.C },
|
|
|
|
|
{ GameVersion.Gen3, PersonalTable.E },
|
|
|
|
|
{ GameVersion.Gen4, PersonalTable.HGSS },
|
|
|
|
|
{ GameVersion.Gen5, PersonalTable.B2W2 },
|
|
|
|
|
{ GameVersion.Gen6, PersonalTable.AO },
|
2020-08-07 01:24:20 +00:00
|
|
|
|
{ GameVersion.Gen7, PersonalTable.USUM },
|
|
|
|
|
{ GameVersion.Gen7b, PersonalTable.GG },
|
2019-09-23 23:56:47 +00:00
|
|
|
|
{ GameVersion.Gen8, PersonalTable.SWSH },
|
2019-01-14 02:12:31 +00:00
|
|
|
|
|
|
|
|
|
{ GameVersion.Stadium, PersonalTable.Y },
|
|
|
|
|
{ GameVersion.Stadium2, PersonalTable.GS },
|
2018-03-30 08:02:22 +00:00
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|