Class EntityLevelCondition
- Namespace
- ElectricDrill.AstraRpgFramework.Conditions
- Assembly
- com.electricdrill.astra-rpg-framework.Runtime.dll
Condition that checks the resolved target entity's current level against a fixed threshold.
The entity is resolved from the configured ElectricDrill.AstraRpgFramework.Conditions.EntityLevelCondition._target slot in the
EvaluationContext. Returns false if the target cannot be resolved.
[Serializable]
[TypeSelectableMenu("Leaf/Entity")]
public class EntityLevelCondition : Condition
- Inheritance
-
objectEntityLevelCondition
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.