Skip to main content

ArmorDefinition

A class in Root.Township, Alta.Impact.

Armour asset: damage multipliers per attack type and a conductivity multiplier.

Constructors​

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

Fields​

2 private and internal fields
MemberWhat it is
private AttackTypeMultiplier[] attackTypeMultipliersDamage multipliers by impact type, read by GetMultiplier; types not listed get 1.
private float conductivityMultiplierBacking field for ConductivityMultiplier. Defaults to 1.

Properties​

MemberWhat it is
float ConductivityMultiplier { get; }Multiplier for conductivity. Defaults to 1.

Methods​

MemberWhat it is
float GetMultiplier(ImpactType damageType)Damage multiplier for an impact type, or 1 if the armour has none for it.

Used in​

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