Class HasBankItemCondition
Condition that checks if a character's bank contains a specific item template.
[Serializable]
public class HasBankItemCondition : BaseCondition, ICondition
- Inheritance
-
HasBankItemCondition
- Implements
- Inherited Members
Fields
ItemTemplateID
The ID of the item template to check for in the character's bank.
public int ItemTemplateID
Field Value
Methods
Evaluate(ICharacter, EventData)
Evaluates whether the character (or event target) has the specified item in their bank.
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's bank contains the item; otherwise, false.