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