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
-
objectChangedStatCondition
Methods
Evaluate(EvaluationContext)
Evaluates this condition against the provided context.
public override bool Evaluate(EvaluationContext ctx)
Parameters
ctxEvaluationContextContextual data available to the condition (holder, performer, payload).
Returns
- bool
trueif the condition is satisfied; otherwisefalse.