mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-22 20:13:06 +00:00
Add Crystal Mystery Gift item in Simple Editor (#3983)
For Pokémon Crystal international release, add the option to edit the Mystery Gift item in the Simple Editor.
This commit is contained in:
parent
fda815c3e5
commit
be576be88b
3 changed files with 26 additions and 0 deletions
|
@ -11,6 +11,7 @@
|
|||
0190 * Kurt can check GS Ball
|
||||
0191 * Kurt ready to return GS Ball (combine with above Flag)
|
||||
0192 * GS Ball can be inserted into Ilex Forest Shrine
|
||||
1809 * No Mystery Gift item is waiting in the Pokemon Center
|
||||
0672 * SOLVED_HO_OH_PUZZLE
|
||||
0673 * SOLVED_KABUTO_PUZZLE
|
||||
0674 * SOLVED_OMANYTE_PUZZLE
|
||||
|
|
|
@ -507,6 +507,28 @@ public sealed class SAV2 : SaveFile, ILangDeviantSave, IEventFlagArray, IEventWo
|
|||
}
|
||||
}
|
||||
|
||||
public byte MysteryGiftItem
|
||||
{
|
||||
get
|
||||
{
|
||||
int ofs = Offsets.MysteryGiftItem;
|
||||
if (ofs == -1)
|
||||
return 0;
|
||||
if (GetEventFlag(1809))
|
||||
return 0;
|
||||
return Data[ofs];
|
||||
}
|
||||
set
|
||||
{
|
||||
int ofs = Offsets.MysteryGiftItem;
|
||||
if (ofs == -1)
|
||||
return;
|
||||
|
||||
SetEventFlag(1809, value == 0);
|
||||
Data[ofs] = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool MysteryGiftIsUnlocked
|
||||
{
|
||||
get
|
||||
|
|
|
@ -46,6 +46,7 @@ internal sealed class SAV2Offsets
|
|||
public int Daycare { get; }
|
||||
|
||||
public int BlueCardPoints { get; private set; } = -1;
|
||||
public int MysteryGiftItem { get; private set; } = -1;
|
||||
public int MysteryGiftIsUnlocked { get; private set; } = -1;
|
||||
|
||||
public int PouchTMHM { get; private set; } = -1;
|
||||
|
@ -97,6 +98,7 @@ internal sealed class SAV2Offsets
|
|||
CurrentBoxIndex = 0x2700;
|
||||
BoxNames = 0x2703;
|
||||
BlueCardPoints = 0x27D9;
|
||||
MysteryGiftItem = 0xBE4;
|
||||
Party = 0x2865;
|
||||
PokedexCaught = 0x2A27;
|
||||
PokedexSeen = 0x2A47;
|
||||
|
@ -163,6 +165,7 @@ internal sealed class SAV2Offsets
|
|||
CurrentBoxIndex = 0x26E2;
|
||||
BoxNames = 0x26E5;
|
||||
BlueCardPoints = 0x278E;
|
||||
MysteryGiftItem = 0xB52;
|
||||
Party = 0x281A;
|
||||
PokedexCaught = 0x29AA;
|
||||
PokedexSeen = 0x29CA;
|
||||
|
|
Loading…
Reference in a new issue