private static bool GetHasSpecificSavingThrowBonus(CLRScriptBase script, List<PricedItemProperty> itProp, int saveType, int saveBonus)
{
PricedItemProperty removedProp = null;
foreach (PricedItemProperty prop in itProp)
{
if (script.GetItemPropertyType(prop.Property) == ITEM_PROPERTY_SAVING_THROW_BONUS &&
script.GetItemPropertySubType(prop.Property) == saveType &&
script.GetItemPropertyCostTableValue(prop.Property) == saveBonus)
{
removedProp = prop;
break;
}
}
if (removedProp != null)
{
itProp.Remove(removedProp);
return true;
}
return false;
}