mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-10 14:44:24 +00:00
Move eventflag offset fetch to SAV2Offsets obj
This commit is contained in:
parent
18bad05210
commit
f13cc289a7
2 changed files with 6 additions and 4 deletions
|
@ -114,13 +114,10 @@ namespace PKHeX.Core
|
|||
|
||||
// Enable Pokedex editing
|
||||
PokeDex = 0;
|
||||
EventFlag = Offsets.EventFlag;
|
||||
|
||||
if (!Exportable)
|
||||
ClearBoxes();
|
||||
|
||||
if (Version == GameVersion.C){
|
||||
EventFlag = Japanese || Korean ? 0x1800 : 0x2600;
|
||||
}
|
||||
}
|
||||
|
||||
private const int SIZE_RESERVED = 0x8000; // unpacked box data
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
public int Gender { get; private set; } = -1;
|
||||
public int AccumulatedChecksumEnd { get; private set; } = -1;
|
||||
public int OverallChecksumPosition { get; private set; } = -1;
|
||||
public int EventFlag { get; private set; } = int.MinValue;
|
||||
|
||||
public int PouchTMHM { get; private set; } = -1;
|
||||
public int PouchItem { get; private set; } = -1;
|
||||
|
@ -89,6 +90,8 @@
|
|||
PouchKey = 0x244A;
|
||||
PouchBall = 0x2465;
|
||||
PouchPC = 0x247F;
|
||||
|
||||
EventFlag = 0x2600;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -139,6 +142,8 @@
|
|||
PouchKey = 0x242C;
|
||||
PouchBall = 0x2447;
|
||||
PouchPC = 0x2461;
|
||||
|
||||
EventFlag = 0x1800;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue