mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Relocate oras setopower data to sav6
This commit is contained in:
parent
7ec7ca312d
commit
cb4761403a
2 changed files with 17 additions and 9 deletions
|
@ -1010,5 +1010,20 @@ namespace PKHeX.Core
|
|||
PadToSize = maxLength + 1;
|
||||
return StringConverter.SetString6(value, maxLength, PadToSize, PadWith);
|
||||
}
|
||||
|
||||
private static readonly byte[] OPowerORAS =
|
||||
{
|
||||
0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00,
|
||||
0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
|
||||
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01,
|
||||
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
|
||||
0x01, 0x00, 0x00, 0x00,
|
||||
};
|
||||
|
||||
public void UnlockORASOPowers()
|
||||
{
|
||||
if (ORAS)
|
||||
SetData(OPowerORAS, OPower);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -597,15 +597,8 @@ namespace PKHeX.WinForms.Controls
|
|||
if (SAV.ORAS)
|
||||
{
|
||||
var dr = WinFormsUtil.Prompt(MessageBoxButtons.YesNo, MsgSaveGen6OPower, MsgSaveGen6OPowerCheatDesc);
|
||||
if (dr != DialogResult.Yes) return;
|
||||
new byte[]
|
||||
{
|
||||
0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00,
|
||||
0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
|
||||
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01, 0x00, 0x01, 0x01, 0x01, 0x01,
|
||||
0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01, 0x01,
|
||||
0x01, 0x00, 0x00, 0x00,
|
||||
}.CopyTo(SAV.Data, SAV.OPower);
|
||||
if (dr == DialogResult.Yes)
|
||||
((SAV6) SAV).UnlockORASOPowers();
|
||||
}
|
||||
else if (SAV.XY)
|
||||
new SAV_OPower(SAV).ShowDialog();
|
||||
|
|
Loading…
Reference in a new issue