Class DamageSourceSO
- Namespace
- ElectricDrill.AstraHealth.Damage
- Assembly
- com.electricdrill.astra-health.Runtime.dll
Defines a damage source asset that identifies how damage was produced (for example: a spell, trap, environmental hazard, system event, etc.). Create instances via Assets -> Create -> Astra Health / Damage Source.
public class DamageSourceSO : ScriptableObject, ITaggable
- Inheritance
-
objectDamageSourceSO
- Implements
-
ITaggable
Properties
FlatDamageModificationStat
The stat representing the flat damage accumulator for this source. This stat serves as an accumulator for multiple flat modifiers (positive or negative) that affect damage from this source linearly.
public StatSO FlatDamageModificationStat { get; }
Property Value
- StatSO
PercentageDamageModificationStat
The stat representing the percentage damage accumulator for this source. This stat serves as an accumulator for multiple percentage modifiers (positive or negative) that affect damage from this source.
public StatSO PercentageDamageModificationStat { get; }
Property Value
- StatSO
Tags
The tags associated with this object.
public GameTagSet Tags { get; }
Property Value
- GameTagSet
Methods
ToString()
Returns the asset name of this damage source.
public override string ToString()
Returns
- string