Tweak set IO

Return empty string instead of null
Recalculate current level (ignore corrupted stats)
This commit is contained in:
Kurt
2015-12-09 19:38:09 -08:00
parent 71f428cb69
commit 9013dc0641

View File

@@ -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();