Dynamic Attribute
Most attributes added by the mod work different from vanilla attributed. Instead of providing a value they modify dynamic values, using addition or multiplication. They are calculated like normal attributes, but their base value is internally set to the dynamic value. Changing base value of these attributes is not possible, and it is always displayed as NaN.
Examples
Click to view
Assume the player originally deals 8
damage and has the following modifiers of the puffish_attributes:melee_damage
attribute which has positive effect.
1
and2
bothaddition
then deals8 + 1 + 2 = 11
damage.0.25
and0.3
bothmultiply_base
then deals8 * (1 + 0.25 + 0.3) = 12.4
damage.0.25
and0.3
bothmultiply_total
then deals8 * (1 + 0.25) * (1 + 0.3) = 13
damage.- Three
0.5
allmultiply_base
then deals8 * (1 + 0.5 + 0.5 + 0.5) = 20
damage. - Three
0.5
allmultiply_total
then deals8 * (1 + 0.5) * (1 + 0.5) * (1 + 0.5) = 27
damage.
Click to view
Assume the player originally takes 8
damage and has the following modifiers of the puffish_attributes:resistance
attribute which has negative effect.
1
and2
bothaddition
then takes8 - 1 - 2 = 5
damage.0.25
and0.3
bothmultiply_base
then takes8 * (1 - 0.25 - 0.3) = 3.6
damage.0.25
and0.3
bothmultiply_total
then takes8 * (1 - 0.25) * (1 - 0.3) = 4.2
damage.