From ace267d5546efd34f5b1a3210e579c7bb0e165dd Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Fri, 1 Jan 2016 19:45:03 -0800 Subject: [PATCH] Reorganize EV output Thanks Wanderer1391! --- Misc/PKX.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Misc/PKX.cs b/Misc/PKX.cs index b5c74b025..be508f304 100644 --- a/Misc/PKX.cs +++ b/Misc/PKX.cs @@ -1382,11 +1382,12 @@ public string getText() // EVs string[] evstr = new string[6]; + int[] sEVs = { EVs[0], EVs[1], EVs[2], EVs[4], EVs[5], EVs[3] }; // Reorganize speed int evctr = 0; for (int i = 0; i < 6; i++) { - if (EVs[i] == 0) continue; - evstr[evctr++] += String.Format("{0} {1}", EVs[i], StatNames[i]); + if (sEVs[i] == 0) continue; + evstr[evctr++] += String.Format("{0} {1}", sEVs[i], StatNames[i]); } if (evctr > 0) result += "EVs: " + string.Join(" / ", evstr.Take(evctr)) + Environment.NewLine; @@ -1551,4 +1552,4 @@ public int RandomGender public bool HasFormes { get { return FormeCount > 1; } } } } -} \ No newline at end of file +}