Table of Contents

Method HasItemProperty

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

HasItemProperty(ItemPropertyType)

Gets whether this item has a given item property.

public bool HasItemProperty(ItemPropertyType property)

Parameters

property ItemPropertyType

Item 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

propertyType ItemPropertyTableEntry

If set, restricts the search of item properties to the specified type.

subType ItemPropertySubTypeTableEntry

If set, restricts the search of item properties to the specified sub-type.

durationType EffectDuration?

If set, restricts the search of item properties to the specified duration type.

tag string

If 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.