Class CastWhenHeld
Cast spell when item held (equipped).
Assembly: Assembly-CSharp.dll
Syntax
public class CastWhenHeld : BaseEntityEffect, IEntityEffect, IMacroContextProvider
Fields
|
Improve this Doc
View Source
EffectKey
Declaration
public static readonly string EffectKey
Field Value
|
Improve this Doc
View Source
normalMagicItemDegradeRate
Declaration
protected const int normalMagicItemDegradeRate = 4
Field Value
|
Improve this Doc
View Source
restingMagicItemDegradeRate
Declaration
protected const int restingMagicItemDegradeRate = 60
Field Value
Properties
|
Improve this Doc
View Source
GroupName
Declaration
public override string GroupName { get; }
Property Value
Overrides
Methods
|
Improve this Doc
View Source
ApplyDurabilityLoss(DaggerfallUnityItem, DaggerfallEntityBehaviour)
Declaration
protected virtual void ApplyDurabilityLoss(DaggerfallUnityItem item, DaggerfallEntityBehaviour entity)
Parameters
|
Improve this Doc
View Source
EnchantmentPayloadCallback(EnchantmentPayloadFlags, Nullable<EnchantmentParam>, DaggerfallEntityBehaviour, DaggerfallEntityBehaviour, DaggerfallUnityItem, Int32)
Declaration
public override PayloadCallbackResults? EnchantmentPayloadCallback(EnchantmentPayloadFlags context, EnchantmentParam? param = null, DaggerfallEntityBehaviour sourceEntity = null, DaggerfallEntityBehaviour targetEntity = null, DaggerfallUnityItem sourceItem = null, int sourceDamage = 0)
Parameters
Returns
Overrides
|
Improve this Doc
View Source
GetEnchantmentSettings()
Outputs spells available to this item effect abstracted as EnchantmentSettings array.
When EnchantmentSettings.ClassicParam is set, it refers to a classic spell ID.
When EnchantmentSettings.CustomParam is set, it refers to a custom spell bundle.
Declaration
public override EnchantmentSettings[] GetEnchantmentSettings()
Returns
Overrides
|
Improve this Doc
View Source
InstantiateSpellBundle(EnchantmentParam, DaggerfallEntityBehaviour, DaggerfallUnityItem, EntityEffectManager, Boolean)
Declaration
protected virtual void InstantiateSpellBundle(EnchantmentParam param, DaggerfallEntityBehaviour sourceEntity, DaggerfallUnityItem sourceItem, EntityEffectManager casterManager, bool recast = false)
Parameters
|
Improve this Doc
View Source
SetProperties()
Declaration
public override void SetProperties()
Overrides
Implements