Skip to main content

DamageMultiplier

A class in Root.Township, Alta.Enchantments.

Enchantment effect asset that multiplies the damage of an impact hit.

Constructors​

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

Fields​

1 private and internal field
MemberWhat it is
private float multiplierBacking field for Multiplier.

Properties​

MemberWhat it is
float Multiplier { get; }Factor the hit's health damage is multiplied by. Defaults to 1.2.

Methods​

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

Used in​

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