Class QuestAttributeRequirement
Represents a requirement for a quest based on a character attribute and minimum value. Used to check if a character meets the attribute requirement for quest progression.
[Serializable]
public class QuestAttributeRequirement
- Inheritance
-
QuestAttributeRequirement
- Inherited Members
Fields
minRequiredValue
The minimum required value for the attribute.
public long minRequiredValue
Field Value
template
The attribute template to check against.
public CharacterAttributeTemplate template
Field Value
Methods
MeetsRequirements(ICharacterAttributeController)
Checks if the provided character attributes meet the requirement. Returns true if the attribute exists and its final value is at least the minimum required value.
public bool MeetsRequirements(ICharacterAttributeController characterAttributes)
Parameters
characterAttributesICharacterAttributeControllerThe character's attribute controller.
Returns
- bool
True if requirements are met, false otherwise.