Class WeaponService
[ServiceBinding(typeof(WeaponService))]
[ServiceBindingOptions(Lazy = true)]
public sealed class WeaponService : IDisposable
- Inheritance
-
WeaponService
- Implements
- Inherited Members
- Extension Methods
Constructors
Properties
- EnableSlingGoodAimFeat
Gets or sets whether the "Good Aim" feat should also apply to slings.
- GreaterWeaponFocusAttackBonus
Gets or sets the attack bonus granted to a creature with a "Greater Weapon Focus" feat.
This does not exist in the base game, see AddGreaterWeaponFocusFeat(NwBaseItem, NwFeat) to add feats that grant this bonus.
- GreaterWeaponSpecializationDamageBonus
Gets or sets the damage bonus granted to a creature with a "Greater Weapon Specialization" feat.
This does not exist in the base game, see AddGreaterWeaponSpecializationFeat(NwBaseItem, NwFeat) to add feats that grant this bonus.
Methods
- AddEpicWeaponDevastatingCriticalFeat(NwBaseItem, NwFeat)
Adds the specified feat as a devastating critical feat for the specified base item type.
- AddEpicWeaponFocusFeat(NwBaseItem, NwFeat)
Adds the specified feat as an epic weapon focus feat for the specified base item type.
- AddEpicWeaponOverwhelmingCriticalFeat(NwBaseItem, NwFeat)
Adds the specified feat as an epic overwhelming critical feat for the specified base item type.
- AddEpicWeaponSpecializationFeat(NwBaseItem, NwFeat)
Adds the specified feat as an epic weapon specialization feat for the specified base item type.
- AddGreaterWeaponFocusFeat(NwBaseItem, NwFeat)
Adds the specified feat as a greater weapon focus feat for the specified base item type.
This adds the GreaterWeaponFocusAttackBonus to the weapon's attack roll for characters with the specified feat.
- AddGreaterWeaponSpecializationFeat(NwBaseItem, NwFeat)
Adds the specified feat as a greater weapon specialization feat for the specified base item type.
This adds the GreaterWeaponSpecializationDamageBonus to the weapon's damage roll for characters with the specified feat.
- AddWeaponFocusFeat(NwBaseItem, NwFeat)
Adds the specified feat as a weapon focus feat for the specified base item type.
- AddWeaponImprovedCriticalFeat(NwBaseItem, NwFeat)
Adds the specified feat as an improved critical feat for the specified base item type.
- AddWeaponOfChoiceFeat(NwBaseItem, NwFeat)
Adds the specified feat as a weapon of choice feat for the specified base item type.
- AddWeaponSpecializationFeat(NwBaseItem, NwFeat)
Adds the specified feat as a weapon specialization feat for the specified base item type.
- GetWeaponFinesseSize(NwBaseItem)
Gets the required creature size needed for the specified base item type to be finessable. This function only returns values assigned in SetWeaponFinesseSize(NwBaseItem, CreatureSize).
- SetMaxRangedAttackDistanceOverride(NwBaseItem, float, float, float)
Overrides the max attack distance of ranged weapons.
- SetWeaponFinesseSize(NwBaseItem, CreatureSize)
Sets the required creature size needed for the specified base item type to be finessable.
- SetWeaponIsMonkWeapon(NwBaseItem)
Sets the specified weapon base item to be considered a monk weapon.
- SetWeaponUnarmed(NwBaseItem)
Sets the specified weapon base item to be considered as unarmed for the weapon finesse feat.
Events
- OnDevastatingCriticalHit
Called when an attack results in a devastating critical hit. Subscribe and modify the event data to implement custom behaviours.