Navigation
API > API/Plugins > API/Plugins/GameplayAbilities
Defines the ways that mods will modify attributes. Values of the same type are aggregated, and then applied in the following equation: ((BaseValue + AddBase) * MultiplyAdditive / DivideAdditive * MultiplyCompound) + AddFinal
| Name | EGameplayModOp::Type |
| Type | enum |
| Header File | /Engine/Plugins/Runtime/GameplayAbilities/Source/GameplayAbilities/Public/GameplayEffectTypes.h |
| Include Path | #include "GameplayEffectTypes.h" |
Syntax
namespace EGameplayModOp
{
enum Type
{
AddBase,
MultiplyAdditive,
DivideAdditive,
MultiplyCompound = 4,
AddFinal,
Max,
Additive = 0,
Multiplicitive = 1,
Division = 2,
Override = 3,
}
}
Values
| Name | Remarks |
|---|---|
| AddBase | Adds to the Base value. This happens first, before all other mods are considered. |
| MultiplyAdditive | Multipliers are added together first, then multiplied against prev result. |
| DivideAdditive | Divisors are added together, then divided against the prev result. |
| MultiplyCompound | Multiply the prev result by this value. E.g. two values of 1.5 compounded: 1.5 * 1.5 = 2.25. |
| AddFinal | Add this value to the final computed result. |
| Max | This must always be the last value (used in iteration code). |
| Additive | Backwards compatible names. |
| Multiplicitive | |
| Division | |
| Override | Override the value, regardless of what the computation provides. |