mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
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:
parent
210bd90fc1
commit
aac498a31d
1 changed files with 7 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue