mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 10:16:41 -05:00
Tweak set IO
Return empty string instead of null Recalculate current level (ignore corrupted stats)
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user