Class CanEquipItemCondition
Condition that checks if an item can be equipped by the character (initiator or event target). Requires an ItemEventData in the EventData.
[Serializable]
public class CanEquipItemCondition : BaseCondition, ICondition
- Inheritance
-
CanEquipItemCondition
- Implements
- Inherited Members
Methods
Evaluate(ICharacter, EventData)
Evaluates whether the character (or event target) can equip the specified item, based on the provided event data.
public override bool Evaluate(ICharacter initiator, EventData eventData)
Parameters
initiatorICharacterThe character to check, or the fallback if no event target is present.
eventDataEventDataEvent data containing item and slot information.
Returns
- bool
True if the item can be equipped; otherwise, false.