Add shiny star to pk1 filename export

closes #1770
This commit is contained in:
Kurt 2018-01-25 08:50:17 -08:00
parent 475acfaeac
commit 1db5161a59

View file

@ -34,7 +34,14 @@ namespace PKHeX.Core
public override bool Japanese => otname.Length == STRLEN_J;
public override bool Korean => false;
public override string FileName => $"{Species:000} - {Nickname} - {SaveUtil.CRC16_CCITT(Encrypt()):X4}.{Extension}";
public override string FileName
{
get
{
string star = IsShiny ? " ★" : "";
return $"{Species:000}{star} - {Nickname} - {SaveUtil.CRC16_CCITT(Encrypt()):X4}.{Extension}";
}
}
public PK1(byte[] decryptedData = null, string ident = null, bool jp = false)
{