Class CanAcceptQuestCondition
Condition that checks whether the character can accept a specific quest. Evaluates attribute requirements, prerequisite quests, and whether it is already acquired.
[Serializable]
public class CanAcceptQuestCondition : BaseCondition, ICondition
- Inheritance
-
CanAcceptQuestCondition
- Implements
- Inherited Members
Fields
QuestTemplate
The quest template to check acceptance eligibility for.
[Tooltip("The quest template to check acceptance eligibility for.")]
public QuestTemplate QuestTemplate
Field Value
Methods
Evaluate(ICharacter, EventData)
Evaluates the condition's raw pass/fail logic. Must be implemented by derived classes. Derived classes should NOT apply Invert themselves — the framework calls Check(ICharacter, EventData), which wraps this method and applies Invert uniformly.
public override bool Evaluate(ICharacter initiator, EventData eventData = null)
Parameters
initiatorICharacterThe character initiating the check.
eventDataEventDataOptional event data for the condition.
Returns
- bool
True if the underlying check passes; otherwise, false.