public static bool HasType_Known(this IPBEPokemonKnownTypes pkmn, PBEType type) { if (type >= PBEType.MAX) { throw new ArgumentOutOfRangeException(nameof(type)); } return(pkmn.KnownType1 == type || pkmn.KnownType2 == type); }
public static double GetEffectiveness_Known(PBEType attackingType, IPBEPokemonKnownTypes defendingTypes, bool ignoreGhost = false, bool ignoreDark = false) { if (defendingTypes == null) { throw new ArgumentNullException(nameof(defendingTypes)); } return(GetEffectiveness(attackingType, defendingTypes.KnownType1, defendingTypes.KnownType2, ignoreGhost: ignoreGhost, ignoreDark: ignoreDark)); }
public static bool ReceivesSTAB_Known(this IPBEPokemonKnownTypes pkmn, PBEType type) { return(type != PBEType.None && HasType_Known(pkmn, type)); }