Modifiers
In Alacrity, a Modifier is a representation of a value (or values) that will modify one or more of the attributes of an entity when a buff is applied to it. Essentially, a modifier is a rule or condition that changes how an entity's attributes are affected by a buff.
Modifiers are defined within the context of a Buff, which is a collection of modifiers that can be applied to an entity. When a buff is applied to an entity, each of its modifiers is evaluated and applied to the appropriate attributes of the entity based on its conditions.
Modifiers can have various effects, such as increasing or decreasing an attribute's value, setting it to a specific value, or even applying a mathematical formula to it. Modifiers can also be conditional, meaning they only apply under certain circumstances, such as when the entity is in a certain state or has a certain status effect.
Overall, modifiers play a crucial role in determining how buffs affect entities in Alacrity, and understanding how to define and use them is key to creating effective and balanced buffs. The Modifiers section of the documentation extends greatly this information.
🚨 Modifiers are the bread and butter of Alacrity's buffs system, they are the most complex component of Alacrity, make sure to dedicate them the time that they deserve to fully understand how they work.