Update _K12.cs

This commit is contained in:
Russell Jones
2019-02-26 01:26:19 +00:00
committed by GitHub
parent 51bdd7d67c
commit 2909c4afef

View File

@@ -260,12 +260,11 @@ public override ushort[] GetStats(PersonalInfo p)
protected static ushort GetStat(int BV, int IV, int EV, int LV)
{
EV = (ushort)Math.Sqrt(EV) >> 2;
EV = (ushort)Math.Min(255, Math.Sqrt(EV) + 1) >> 2;
return (ushort)((((2 * (BV + IV)) + EV) * LV / 100) + 5);
}
public override int GetMovePP(int move, int ppup) => Math.Min(61, base.GetMovePP(move, ppup));
public override int GetMovePP(int move, int ppup) => GetBasePP(move) + ppup * Math.Min(7, GetBasePP(move) / 5)
/// <summary>
/// Applies <see cref="PKM.IVs"/> to the <see cref="PKM"/> to make it shiny.
/// </summary>