Table of Contents

Method ACBonusVsDmgType

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ACBonusVsDmgType(IPDamageType, int)

Creates an Armor Class bonus versus a damage type. Only physical types (Bludgeoning, Piercing, Slashing) are valid. Bonus must be 1–20.

public static ItemProperty ACBonusVsDmgType(IPDamageType damageType, int bonus)

Parameters

damageType IPDamageType

The damage type (physical only).

bonus int

The AC bonus (1–20).

Returns

ItemProperty

The created item property.

Remarks

Items that gain a Deflection bonus: Creature Skins, staves, rings, melee weapons, helmets, cloaks, belts, gloves, and ranged weapons that use ammunition.
Items that gain an Armor bonus: Armors and bracers.
Items that gain a Natural Armor bonus: Amulets.
Items that gain a Shield bonus: Shields.
Items that gain a Dodge bonus: Boots.