mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-28 06:50:23 +00:00
ab0b8979e9
placeholder content until real data is dumped
46 lines
1,007 B
C#
46 lines
1,007 B
C#
using PKHeX.Core;
|
|
|
|
namespace PKHeX.WinForms.Controls
|
|
{
|
|
public partial class PKMEditor
|
|
{
|
|
private void PopulateFieldsPK8()
|
|
{
|
|
if (!(pkm is PK8 pk8))
|
|
return;
|
|
|
|
LoadMisc1(pk8);
|
|
LoadMisc2(pk8);
|
|
LoadMisc3(pk8);
|
|
LoadMisc4(pk8);
|
|
LoadMisc6(pk8);
|
|
SizeCP.LoadPKM(pk8);
|
|
|
|
LoadPartyStats(pk8);
|
|
UpdateStats();
|
|
}
|
|
|
|
private PKM PreparePK8()
|
|
{
|
|
if (!(pkm is PK8 pk8))
|
|
return null;
|
|
|
|
CheckTransferPIDValid();
|
|
SaveMisc1(pk8);
|
|
SaveMisc2(pk8);
|
|
SaveMisc3(pk8);
|
|
SaveMisc4(pk8);
|
|
SaveMisc6(pk8);
|
|
|
|
// Toss in Party Stats
|
|
SavePartyStats(pk8);
|
|
|
|
pk8.FixMoves();
|
|
pk8.FixRelearn();
|
|
if (ModifyPKM)
|
|
pk8.FixMemories();
|
|
pk8.RefreshChecksum();
|
|
return pk8;
|
|
}
|
|
}
|
|
}
|