mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 20:43:07 +00:00
Add SaveFile version detect bools
This commit is contained in:
parent
f9bd271967
commit
d56a55965d
2 changed files with 13 additions and 5 deletions
|
@ -12,20 +12,20 @@ namespace PKHeX
|
|||
{
|
||||
case 6: s += SAV.ORAS && index > 16 ? "ao" : "xy";
|
||||
break;
|
||||
case 5: s += SAV.Version == GameVersion.B2W2 && index > 16 ? "b2w2" : "bw";
|
||||
case 5: s += SAV.B2W2 && index > 16 ? "b2w2" : "bw";
|
||||
break;
|
||||
case 4:
|
||||
if (SAV.Version == GameVersion.Pt && index > 16)
|
||||
if (SAV.Pt && index > 16)
|
||||
s += "pt";
|
||||
else if (SAV.Version == GameVersion.HGSS && index > 16)
|
||||
else if (SAV.HGSS && index > 16)
|
||||
s += "hgss";
|
||||
else
|
||||
s += "dp";
|
||||
break;
|
||||
case 3:
|
||||
if (SAV.Version == GameVersion.E)
|
||||
if (SAV.E)
|
||||
s += "e";
|
||||
else if (SAV.Version == GameVersion.FRLG && index > 12)
|
||||
else if (SAV.FRLG && index > 12)
|
||||
s += "frlg";
|
||||
else
|
||||
s += "rs";
|
||||
|
|
|
@ -50,6 +50,14 @@ namespace PKHeX
|
|||
public bool ORASDEMO => Data.Length == SaveUtil.SIZE_G6ORASDEMO;
|
||||
public bool ORAS => Version == GameVersion.OR || Version == GameVersion.AS;
|
||||
public bool XY => Version == GameVersion.X || Version == GameVersion.Y;
|
||||
public bool B2W2 => Version == GameVersion.B2W2;
|
||||
public bool BW => Version == GameVersion.BW;
|
||||
public bool HGSS => Version == GameVersion.HGSS;
|
||||
public bool Pt => Version == GameVersion.Pt;
|
||||
public bool DP => Version == GameVersion.DP;
|
||||
public bool E => Version == GameVersion.E;
|
||||
public bool FRLG => Version == GameVersion.FRLG;
|
||||
public bool RS => Version == GameVersion.RS;
|
||||
|
||||
public virtual int MaxMoveID => int.MaxValue;
|
||||
public virtual int MaxSpeciesID => int.MaxValue;
|
||||
|
|
Loading…
Reference in a new issue