benilla-re systems structs docs

IsWholeDuration

function · ui · primitive

Address
0x52f980 · 203 bytes, up to 0x52fa4a
Signature
uint32_t __stdcall (float ms, float tolerance)
Meaning
Returns whether a duration is a whole number of its largest unit within a tolerance
Confidence
verified, proof one
Finding
ui/spelltokens#tokens-that-compute-a-value
Test
ui::time_band_remainder, ui::time_band_select

Finding: Tokens that compute a value in ui: Spell description tokens

$c is the spell's power cost and $p its cost per second. $d is the duration: none reads SPELL_DURATION_UNTIL_CANCELLED; a whole number of its largest unit (to 0.01) prints INT_SPELL_DURATION with the integer count, and any other SPELL_DURATION with a one-decimal count. $r is the range record's maximum, modified, with one decimal. $t is the effect's period in seconds, 5 when the word at +0x60 has bit 0, else the period at +0x178, modified (op 19). $z is the area name of the player's bind point, or HOME_INN.

The derivation is in the doc.

Callers 1

Callees 1

Calls and jumps by a bare address, from tables/calls.tsv.