Attribute Modifier
An object used to specify how a value should be modified.
Fields
| Field | Type | Default | Description |
|---|---|---|---|
operation |
Attribute Modifier Operation | The operation which will be performed by this modifier. | |
value |
Float | The value to use for the modifier operation. | |
resource |
Identifier | optional | If specified, the value of this power will be used instead of the value specified in the value field. |
name |
String | optional | A descriptive name for the modifier, describing where it comes from. |
Examples
"modifier": {
"operation": "add_base_early",
"value": 9
}
This example will add 9.0 to the base value.
(For example: if the current base value is 6.0, the new base value will be 15 since 6 + 9 = 15)
"modifier": {
"operation": "multiply_base_additive",
"value": 2
}
This example will add the base value multiplied by the modifier value to the current base value.
(For example: if the current base value is 5, the new base value will be 15 since 5 + (5 * 2) = 15)
"modifier": {
"operation": "multiply_total_multiplicative",
"value": 0.25
}
This example will multiply the total value by 1.25, essentially increasing the total value by 125%.
(For example: if the current total value is 30, the new total value will be 37.5 since 30 * (1 + 0.25) = 37.5)