mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-26 15:45:16 -05:00
Add SaveFile version detect bools
This commit is contained in:
@@ -12,20 +12,20 @@ public static Bitmap getWallpaper(SaveFile SAV, int index)
|
||||
{
|
||||
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 @@ public byte[] Write(bool DSV)
|
||||
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;
|
||||
|
||||
Reference in New Issue
Block a user