From ff48c824eb9e3b4d65b05ae7f52cd2cdfe68ffe4 Mon Sep 17 00:00:00 2001 From: Kurt Date: Fri, 4 Feb 2022 00:37:29 -0800 Subject: [PATCH] Update ContestStatInfo.cs --- PKHeX.Core/Legality/Verifiers/Misc/ContestStatInfo.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/PKHeX.Core/Legality/Verifiers/Misc/ContestStatInfo.cs b/PKHeX.Core/Legality/Verifiers/Misc/ContestStatInfo.cs index 8e4dac0f1..8fd5425bf 100644 --- a/PKHeX.Core/Legality/Verifiers/Misc/ContestStatInfo.cs +++ b/PKHeX.Core/Legality/Verifiers/Misc/ContestStatInfo.cs @@ -75,6 +75,9 @@ public static class ContestStatInfo var avg = GetAverageFeel(s, nature, initial); if (avg <= 0) return initial.CNT_Sheen; + + if (avg <= 2) + return 24; // Can get trash poffins by burning and spilling on purpose. return Math.Min(MaxContestStat, avg * LowestFeelPoffin4); @@ -160,7 +163,7 @@ public static class ContestStatInfo private static int GetAverageFeel(IContestStats s, int nature, IContestStats initial) { var sum = GetGainedSum(s, nature, initial); - return sum / 5; + return (int)Math.Ceiling(sum / 5f); } private static int GetGainedSum(IContestStats s, int nature, IContestStats initial)