benilla-re systems structs docs

s_tokenHalf

global · ui

Address
0x84f2d4 · 4 bytes, up to 0x84f2d7
Type
const float
Meaning
Holds 0.5, the half added before an amount token rounds
Confidence
verified, proof one
Finding
ui/spelltokens#effect-amounts

Finding: Effect amounts in ui: Spell description tokens

$s, $S, $m, $M, $o and $O print one effect's amount. The minimum and maximum of the effect formula (spell/records#effect-amount-formula) at the expander's level are each multiplied by the stack count and, for $o and $O, by the duration over the effect's period (0 counts as 5000 ms, a negative one gives 0), made positive and scaled. A value within 0.001 of a whole number is whole. $m and $M print the minimum and maximum, an integer when whole, else one decimal. The others print one number when the unscaled bounds are equal, else a range: SPELL_POINTS_SPREAD_TEMPLATE for $S, INT_SPELL_POINTS_SPREAD_TEMPLATE for the rest.

The derivation is in the doc.