mirror of
https://github.com/kwsch/PKHeX
synced 2024-11-23 12:33:06 +00:00
Update ContestStatInfo.cs
This commit is contained in:
parent
d44c43f249
commit
ff48c824eb
1 changed files with 4 additions and 1 deletions
|
@ -76,6 +76,9 @@ public static class ContestStatInfo
|
|||
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)
|
||||
|
|
Loading…
Reference in a new issue