Table of Contents

Class DamageCalculationStrategySO

Namespace
ElectricDrill.AstraHealth.Damage.CalculationPipeline
Assembly
com.electricdrill.astra-health.Runtime.dll

ScriptableObject that defines a configurable damage calculation pipeline. The pipeline is composed of ordered DamageStep instances executed sequentially.

Optionally, a pre-strategy and/or post-strategy can be configured to run another DamageCalculationStrategySO before or after this strategy's own steps. This enables composition without duplicating the default pipeline: a custom strategy can delegate to the global default pipeline (or any other strategy) and then apply additional steps on top.

public class DamageCalculationStrategySO : ScriptableObject, ITaggable
Inheritance
object
DamageCalculationStrategySO
Implements
ITaggable

Fields

steps

Ordered list of steps composing this calculation strategy. Steps are executed in sequence.

[SerializeReference]
public List<DamageStep> steps

Field Value

List<DamageStep>

Properties

Tags

The tags associated with this object.

public GameTagSet Tags { get; }

Property Value

GameTagSet

Methods

CalculateDamage(DamageInfo)

Executes the entire damage calculation pipeline defined in this asset, including optional pre-strategy and post-strategy delegation.

public virtual DamageInfo CalculateDamage(DamageInfo data)

Parameters

data DamageInfo

The initial damage information.

Returns

DamageInfo

The damage information after all steps have been applied.