From aeab85cb8364fd06577b8472793dec65dc2b94cb Mon Sep 17 00:00:00 2001 From: Kaphotics Date: Thu, 11 Feb 2016 20:52:10 -0800 Subject: [PATCH] Simplify Characteristic calc ++ increments after calculation, array accessor uses the calculated value --- Misc/PK6.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Misc/PK6.cs b/Misc/PK6.cs index 4ed905b37..edff87129 100644 --- a/Misc/PK6.cs +++ b/Misc/PK6.cs @@ -474,11 +474,8 @@ namespace PKHeX int pm6stat = 0; for (int i = 0; i < 6; i++) - { - pm6stat = (pm6 + i) % 6; - if (IVs[pm6stat] == maxIV) - break; // P%6 is this stat - } + if (IVs[pm6stat = pm6++ % 6] == maxIV) + break; return pm6stat*5 + maxIV%5; } }