Method HasItemProperty
HasItemProperty(ItemPropertyType)
Gets whether this item has a given item property.
public bool HasItemProperty(ItemPropertyType property)
Parameters
propertyItemPropertyTypeItem property to check.
Returns
- bool
True if this item has a property of the given type, otherwise false.
HasItemProperty(ItemPropertyTableEntry?, ItemPropertySubTypeTableEntry?, EffectDuration?, string?)
Gets whether this item has a given item property that matches the specified filters.
If no filters are set, returns if any item property is set on this item.
public bool HasItemProperty(ItemPropertyTableEntry? propertyType = null, ItemPropertySubTypeTableEntry? subType = null, EffectDuration? durationType = null, string? tag = null)
Parameters
propertyTypeItemPropertyTableEntryIf set, restricts the search of item properties to the specified type.
subTypeItemPropertySubTypeTableEntryIf set, restricts the search of item properties to the specified sub-type.
durationTypeEffectDuration?If set, restricts the search of item properties to the specified duration type.
tagstringIf set, restricts the search of item properties to the specified tag.
Returns
- bool
True if this item has a property matching the specified filters, otherwise false.