Fix 3DS console region indexing

mystery gift region ID is not the same indexing as 3DS console region
This commit is contained in:
Kurt 2021-05-19 09:11:54 -07:00
parent 2658c8b89a
commit d6b8a018e6
2 changed files with 7 additions and 7 deletions

View file

@ -1,7 +1,7 @@
namespace PKHeX.Core
{
/// <summary>
/// 3DS Console Region Identifiers
/// 3DS Console Region Identifiers used for Generation 6 &amp; 7 Mystery Gifts
/// </summary>
public enum RegionID : byte
{

View file

@ -10,12 +10,12 @@ namespace PKHeX.Core
{
public static readonly IReadOnlyList<ComboItem> Regions = new List<ComboItem>
{
new ("Japan (日本)", (int)RegionID.Japan),
new ("Americas (NA/SA)", (int)RegionID.NorthAmerica),
new ("Europe (EU/AU)", (int)RegionID.Europe),
new ("China (中国大陆)", (int)RegionID.China),
new ("Korea (한국)", (int)RegionID.Korea),
new ("Taiwan (香港/台灣)", (int)RegionID.Taiwan),
new ("Japan (日本)", 0),
new ("Americas (NA/SA)", 1),
new ("Europe (EU/AU)", 2),
new ("China (中国大陆)", 4),
new ("Korea (한국)", 5),
new ("Taiwan (香港/台灣)", 6),
};
private static readonly List<ComboItem> LanguageList = new()