Class IsArchetypeCondition
Condition that checks if a character is of a specified archetype.
[Serializable]
public class IsArchetypeCondition : BaseCondition, ICondition
- Inheritance
-
IsArchetypeCondition
- Implements
- Inherited Members
Fields
ArchetypeTemplate
The archetype template to check against the character's archetype.
public ArchetypeTemplate ArchetypeTemplate
Field Value
Methods
Evaluate(ICharacter, EventData)
Evaluates whether the character (or event target) is of the specified archetype.
public override bool Evaluate(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character to check, or the fallback if no event target is present.
eventDataEventDataOptional event data that may provide a different character to check.
Returns
- bool
True if the character is of the specified archetype; otherwise, false.
GetTooltipContribution()
Returns a short, designer-facing tooltip line describing this condition's effect,
or null when the condition has nothing to contribute. Override on concrete
conditions that should appear in ability/quest/dialogue tooltips (e.g. attribute
requirements, faction membership). Returning null or whitespace omits the
line entirely.
public override string GetTooltipContribution()
Returns
Remarks
The base implementation returns null. Aggregators
(BaseAbilityTemplate) skip null/whitespace contributions, so most
conditions need not override.