Skip to main content

DurabilitySaveEnchantment

A class in Root.Township, Alta.Enchantments.

Enchantment effect asset that scales how much durability a tool loses on a hit.

Constructors​

MemberWhat it is
DurabilitySaveEnchantment()Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets.

Fields​

1 private and internal field
MemberWhat it is
private float durabilityLostMultiplierBacking field for DurabilityLostMultiplier.

Properties​

MemberWhat it is
float DurabilityLostMultiplier { get; }Factor the hit's durability loss is multiplied by.

Methods​

MemberWhat it is
protected override IEnchantmentEffectApplication CreateNew(EnchantmentApplication enchantment)Creates the DurabilitySaveEnchantmentApplication that applies this effect to an enchanted item.

Used in​

Members of other types that take, return or hold a DurabilitySaveEnchantment: