Set region values for pk3->c/xk3

Regardless of SetPKM setting, just to make sure the values are populated.
Closes #3530
This commit is contained in:
Kurt 2022-06-19 09:26:28 -07:00
parent 210bd90fc1
commit aac498a31d

View file

@ -1,4 +1,4 @@
using System;
using System;
using System.Collections.Generic;
using static System.Buffers.Binary.BinaryPrimitives;
@ -342,6 +342,9 @@ public sealed class PK3 : G3PKM, ISanityChecksum
public XK3 ConvertToXK3()
{
var pk = ConvertTo<XK3>();
// Set these even if the settings don't SetPKM
pk.CurrentRegion = 2; // NTSC-U
pk.OriginalRegion = 2; // NTSC-U
pk.ResetPartyStats();
return pk;
}
@ -349,6 +352,9 @@ public sealed class PK3 : G3PKM, ISanityChecksum
public CK3 ConvertToCK3()
{
var pk = ConvertTo<CK3>();
// Set these even if the settings don't SetPKM
pk.CurrentRegion = 2; // NTSC-U
pk.OriginalRegion = 2; // NTSC-U
pk.ResetPartyStats();
return pk;
}