Table of Contents

Class ChangedAttributeCondition

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

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

Returns false when EventPayload is not an AttributeChangeInfo, when the configured attribute is null, or when the payload attribute is null.

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

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.