mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-03-21 17:48:28 -05:00
Update ContestStatInfo.cs
This commit is contained in:
parent
d44c43f249
commit
ff48c824eb
|
|
@ -75,6 +75,9 @@ public static int CalculateMaximumSheen(IContestStats s, int nature, IContestSta
|
|||
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 @@ private static int CalculateMaximumSheen3(IContestStats s, int nature, IContestS
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user