public static List <ItemDrop.ItemData> GetMagicEquipmentWithEffect(this Player player, MagicEffectType effectType) { return(player.GetEquipment().Where(x => x.HasMagicEffect(effectType)).ToList()); }
public static bool HasMagicEquipmentWithEffect(this Player player, MagicEffectType effectType) { return(GetMagicEquipmentWithEffect(player, effectType).Count > 0); }
public static bool HasMagicEffect(this ItemDrop.ItemData itemData, MagicEffectType effectType) { return(itemData.GetMagicItem()?.HasEffect(effectType) ?? false); }