From 9013dc0641b450e766a62604dc95ce6586a27f8a Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 9 Dec 2015 19:38:09 -0800 Subject: [PATCH] Tweak set IO Return empty string instead of null Recalculate current level (ignore corrupted stats) --- Misc/PKX.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Misc/PKX.cs b/Misc/PKX.cs index cc700e02f..2536d03cc 100644 --- a/Misc/PKX.cs +++ b/Misc/PKX.cs @@ -1351,7 +1351,7 @@ public ShowdownSet(string input = null) public string getText() { if (Species == 0 || Species > 722) - return null; + return ""; // First Line: Name, Nickname, Gender, Item string result = String.Format((species[Species] != Nickname) ? "{0} {1}" : "{1}", Nickname, species[Species]) @@ -1415,7 +1415,7 @@ internal static string getShowdownText(PK6 pk6) Nature = pk6.Nature, Gender = new[] { " (M)", " (F)", "" }[pk6.Gender], Friendship = pk6.CurrentFriendship, - Level = pk6.Stat_Level, + Level = getLevel(pk6.Species, pk6.EXP), Shiny = pk6.IsShiny, }; return Set.getText();