Table of Contents

Class FirstMatchExpStrategySO

Namespace
ElectricDrill.AstraHealth.Experience.Strategies
Assembly
com.electricdrill.astra-health.Runtime.dll

Composite experience collection strategy that evaluates a list of strategies in order. Delegates to the first strategy that successfully collects experience. Useful for implementing fallback behavior (e.g., try direct kill first, then environmental).

public class FirstMatchExpStrategySO : ExpCollectionStrategySO, ITaggable
Inheritance
object
FirstMatchExpStrategySO
Implements
ITaggable
Inherited Members

Methods

TryCollectExp(EntityCore, EntityCore, DamageResolutionContext)

Override TryCollectExp to delegate to the first matching sub-strategy. The winning strategy handles the complete collection workflow.

public override bool TryCollectExp(EntityCore collector, EntityCore victim, DamageResolutionContext dmgResolutionContext)

Parameters

collector EntityCore
victim EntityCore
dmgResolutionContext DamageResolutionContext

Returns

bool

Validate(EntityCore, EntityCore, DamageResolutionContext, out float)

Not used in FirstMatchExpStrategy since TryCollectExp is overridden.

protected override bool Validate(EntityCore collector, EntityCore victim, DamageResolutionContext dmgResolutionContext, out float multiplier)

Parameters

collector EntityCore
victim EntityCore
dmgResolutionContext DamageResolutionContext
multiplier float

Returns

bool