mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 12:03:10 +00:00
Wondercard updates
This commit is contained in:
parent
af66cc96a6
commit
f9e2fe2f0b
1 changed files with 2 additions and 1 deletions
|
@ -33,6 +33,7 @@ namespace PKHeX
|
|||
public int savindex;
|
||||
public bool editing = false;
|
||||
private int wcoffset = 0x21100;
|
||||
private uint herpesval = 0x225D73C2;
|
||||
|
||||
// Repopulation Functions
|
||||
private void populateWClist()
|
||||
|
@ -161,7 +162,7 @@ namespace PKHeX
|
|||
if (m_parent.savegame_oras) // ORAS Only
|
||||
if (BitConverter.ToUInt16(wondercard_data, 0) == 0x800) // Eon Ticket #
|
||||
if (BitConverter.ToUInt16(wondercard_data, 0x68) == 0x2D6) // Eon Ticket
|
||||
Array.Copy(BitConverter.GetBytes(0x225D73C2), 0, sav, 0x319B8 + 0x5400 + savindex * 0x7F000, 4);
|
||||
Array.Copy(BitConverter.GetBytes(herpesval), 0, sav, 0x319B8 + 0x5400 + savindex * 0x7F000, 4);
|
||||
Array.Copy(wondercard_data, 0, sav, offset, 0x108);
|
||||
populateWClist();
|
||||
int cardID = BitConverter.ToUInt16(wondercard_data, 0);
|
||||
|
|
Loading…
Reference in a new issue