From ae8280bb22dab9f935d1941604b22cfbd9c36707 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 23 Nov 2016 20:24:01 -0800 Subject: [PATCH] Add form# to dumped pkm Closes #479 --- PKHeX/PKM/PKM.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/PKHeX/PKM/PKM.cs b/PKHeX/PKM/PKM.cs index 19355a331..267d15fa0 100644 --- a/PKHeX/PKM/PKM.cs +++ b/PKHeX/PKM/PKM.cs @@ -294,7 +294,16 @@ public int GenNumber public Image Sprite => PKX.getSprite(this); public string ShowdownText => ShowdownSet.getShowdownText(this); public string[] QRText => PKX.getQRText(this); - public virtual string FileName => $"{Species.ToString("000")}{(IsShiny ? " ★" : "")} - {Nickname} - {Checksum.ToString("X4")}{EncryptionConstant.ToString("X8")}.{Extension}"; + + public virtual string FileName + { + get + { + string form = AltForm > 0 ? $"-{AltForm.ToString("00")}" : ""; + string star = IsShiny ? " ★" : ""; + return $"{Species.ToString("000")}{form}{star} - {Nickname} - {Checksum.ToString("X4")}{EncryptionConstant.ToString("X8")}.{Extension}"; + } + } public int[] IVs { get { return new[] { IV_HP, IV_ATK, IV_DEF, IV_SPE, IV_SPA, IV_SPD }; }