Class BasicDamageData
- Namespace
- TDMaker.Unity.Authoring
- Assembly
- TDMaker.Unity.dll
A damage packet without an impact payload, baked into DamageDef. Used where a payload would nest (secondary blasts, region pulses); attacks use DamageData, which adds impact.
public class BasicDamageData
- Inheritance
-
BasicDamageData
- Derived
- Inherited Members
Constructors
BasicDamageData()
public BasicDamageData()
Fields
edgeMultiplier
Damage multiplier at the edge of the impact radius.
[Range(0, 1)]
public float edgeMultiplier
Field Value
effects
Status effects requested on every target this hit damages (for example a slow or a poison).
public List<StatusEffectAsset> effects
Field Value
experienceRate
Hero experience per point of health removed (only meaningful for hero attacks).
[Min(0)]
public float experienceRate
Field Value
falloff
Area falloff model.
public DamageFalloff falloff
Field Value
kind
Defense channel.
public DamageKind kind
Field Value
magicalPierce
Magical reduction ignored by this hit.
[Range(0, 1)]
public float magicalPierce
Field Value
maximum
Maximum rolled damage.
[Min(0)]
public float maximum
Field Value
minimum
Minimum rolled damage.
[Min(0)]
public float minimum
Field Value
physicalPierce
Physical reduction ignored by this hit.
[Range(0, 1)]
public float physicalPierce
Field Value
radius
Impact radius; zero hits a single target.
[Min(0)]
public float radius
Field Value
Methods
Decorate(DamageDef)
Lets derived packets add behavior (for example an impact payload) after the base bake.
protected virtual DamageDef Decorate(DamageDef def)
Parameters
defDamageDef
Returns
ToDef()
Bakes the immutable core definition.
public DamageDef ToDef()
Returns
ToDef(float, float)
Bakes with an added experience rate and a damage multiplier (used by hero growth rows).
public DamageDef ToDef(float extraExperienceRate, float damageScale)
Parameters
Returns
ToDef(float, float, bool)
Bakes, optionally forcing a single-target packet (region pulses require one).
public DamageDef ToDef(float extraExperienceRate, float damageScale, bool singleTarget)