Table of Contents

Method ACBonusVsRace

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

ACBonusVsRace(IPRacialType, int)

[Obsolete("Use the NwRace/RacialType overload instead.")]
public static ItemProperty ACBonusVsRace(IPRacialType racialType, int bonus)

Parameters

racialType IPRacialType
bonus int

Returns

ItemProperty

ACBonusVsRace(NwRace, int)

Creates an Armor Class bonus versus a racial type. Bonus must be between 1 and 20; modifier type depends on item.

public static ItemProperty ACBonusVsRace(NwRace race, int bonus)

Parameters

race NwRace

The race.

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.