unreal.GameplayModOp

class unreal.GameplayModOp

Bases: EnumBase

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

C++ Source:

  • Plugin: GameplayAbilities

  • Module: GameplayAbilities

  • File: GameplayEffectTypes.h

ADD_BASE: GameplayModOp = Ellipsis

Adds to the Base value. This happens first, before all other mods are considered.

Type:

0

ADD_FINAL: GameplayModOp = Ellipsis

Add this value to the final computed result.

Type:

5

DIVIDE_ADDITIVE: GameplayModOp = Ellipsis

Divisors are added together, then divided against the prev result. E.g. 1/2 + 1/2 = 1/3 in values is 2 + 2 = 3.

Type:

2

MULTIPLY_ADDITIVE: GameplayModOp = Ellipsis

Multipliers are added together first, then multiplied against prev result. E.g. 50% + 50% = 100% in values is 1.5 + 1.5 = 2.0.

Type:

1

MULTIPLY_COMPOUND: GameplayModOp = Ellipsis

1.5 * 1.5 = 2.25.

Type:

4

Type:

Multiply the prev result by this value. E.g. two values of 1.5 compounded

OVERRIDE: GameplayModOp = Ellipsis

Override the value, regardless of what the computation provides.

Type:

3