Table of Contents

Class ChangedStatCondition

Namespace
ElectricDrill.AstraRpgFramework.Conditions
Assembly
com.electricdrill.astra-rpg-framework.Runtime.dll

Condition that checks whether the payload of a stat change event refers to a specific stat.

Returns false when EventPayload is not a StatChangeInfo, when the configured stat is null, or when the payload stat is null.

[Serializable]
[TypeSelectableMenu("Leaf/Attr. & Stat")]
[ConditionPayload(typeof(StatChangeInfo))]
public class ChangedStatCondition : Condition
Inheritance
object
ChangedStatCondition

Methods

Evaluate(EvaluationContext)

Evaluates this condition against the provided context.

public override bool Evaluate(EvaluationContext ctx)

Parameters

ctx EvaluationContext

Contextual data available to the condition (holder, performer, payload).

Returns

bool

true if the condition is satisfied; otherwise false.