PKHeX.PKX.getHPType C# (CSharp) Method

getHPType() static private method

Calculate the Hidden Power Type of the entered IVs.
static private getHPType ( int ivs ) : int
ivs int HP/ATK/DEF/SPEED/SPA/SPD
return int
        internal static int getHPType(int[] ivs)
        {
            return (15 * ((ivs[0] & 1) + 2 * (ivs[1] & 1) + 4 * (ivs[2] & 1) + 8 * (ivs[5] & 1) + 16 * (ivs[3] & 1) + 32 * (ivs[4] & 1))) / 63;
        }
        internal static int[] setHPIVs(int type, int[] ivs)