mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-09-13 17:25:20 -05:00
Wondercard updates
This commit is contained in:
@@ -33,6 +33,7 @@ public SAV_Wondercard(Form1 frm1)
|
||||
public int savindex;
|
||||
public bool editing = false;
|
||||
private int wcoffset = 0x21100;
|
||||
private uint herpesval = 0x225D73C2;
|
||||
|
||||
// Repopulation Functions
|
||||
private void populateWClist()
|
||||
@@ -161,7 +162,7 @@ private void B_WC2SAV(object sender, EventArgs e)
|
||||
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);
|
||||
|
||||
Reference in New Issue
Block a user