Skip to content

SubPartScaledProportionalToStat

Class Documentation

Edit documentation

A calculation part that returns the value of mSubpart increased in proportion to a stat:

(1 + mRatio * stat) * mSubpart

The unit and the stat are selected with the same fields as for a stat part. If mSubpart is not set, the part returns 0.

The style tag of the part in the tooltip is chosen in this order: the modified tag of GlobalStatsUIData when the value differs from the base value, then mStyleTagIfScaled when mRatio * stat is not 0, then mStyleTag.

Properties

UseNewStats

Bool = false
14.3
Edit documentation

When set, the part reads statType with OutputType instead of mStat and mStatFormula.

UseTargetStats

Bool = false
15.11
Edit documentation

When set, the part reads the stat of the target instead of the caster. Without a target, it reads the caster.

mRatio

F32 = 0
Edit documentation

The fraction of the stat that is added to the scale factor. With mRatio 0.01, every point of the stat adds 1% to the value.

mStyleTag

String = ""
Edit documentation

Tooltip style tag of the part when the stat adds nothing.

mStyleTagIfScaled

String = ""
Edit documentation

Tooltip style tag of the part when mRatio * stat is not 0.