DurabilitySaveEnchantment
A class in Root.Township, Alta.Enchantments.
Enchantment effect asset that scales how much durability a tool loses on a hit.
- Listed in Crafting and making
- Inherits or implements
EnchantmentEffect - Derived types
DurabilitySaveEnchantment.Create,DurabilitySaveEnchantmentApplication - Nested types
Create
Constructors
| Member | What it is |
|---|---|
DurabilitySaveEnchantment() | Use ScriptableObject.CreateInstance instead of new; Unity loads the saved ones from assets. |
Fields
1 private and internal field
Properties
| Member | What it is |
|---|---|
float DurabilityLostMultiplier { get; } | Factor the hit's durability loss is multiplied by. |
Methods
| Member | What 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: