mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-08-02 17:23:42 -05:00
Add FileName fetching
Non language specific export, doesn't indicate egg either (the Nickname will though!)
This commit is contained in:
parent
d17a322bca
commit
bd8ff36e4b
|
|
@ -456,6 +456,7 @@ public int PotentialRating
|
|||
return ivTotal <= 150 ? 2 : 3;
|
||||
}
|
||||
}
|
||||
public string FileName { get { return getFileName(this); } }
|
||||
|
||||
// Methods
|
||||
public void RefreshChecksum()
|
||||
|
|
|
|||
12
Misc/PKX.cs
12
Misc/PKX.cs
|
|
@ -360,6 +360,18 @@ internal static string[] getQRText(PK6 pk6)
|
|||
|
||||
return response;
|
||||
}
|
||||
internal static string getFileName(PK6 pk6)
|
||||
{
|
||||
return
|
||||
pk6.Species.ToString("000")
|
||||
+ (pk6.IsShiny ? " ★" : "")
|
||||
+ " - "
|
||||
+ pk6.Nickname // Rather not have language-specific.
|
||||
+ " - "
|
||||
+ pk6.Checksum.ToString("X4")
|
||||
+ pk6.EncryptionConstant.ToString("X8")
|
||||
+ ".pk6";
|
||||
}
|
||||
internal static ushort[] getStats(PK6 pk6)
|
||||
{
|
||||
return getStats(pk6.Species, pk6.Stat_Level, pk6.Nature, pk6.AltForm,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user