namespace PKHeX.Core { public static class HiddenPowerApplicator { /// /// Sets the to match a provided . /// /// Pokémon to modify. /// Desired Hidden Power typing. public static void SetHiddenPower(this PKM pk, int hiddenPowerType) { var IVs = pk.IVs; HiddenPower.SetIVsForType(hiddenPowerType, pk.IVs, pk.Format); pk.IVs = IVs; } /// /// Sets the to match a provided . /// /// Pokémon to modify. /// Desired Hidden Power typing. public static void SetHiddenPower(this PKM pk, MoveType hiddenPowerType) => pk.SetHiddenPower((int)hiddenPowerType); } }