benilla-re systems structs docs

SpellCastTimesRec

struct · dbc · 16 bytes

Meaning
Holds one SpellCastTimes.dbc row: id, base, per-level and minimum cast time in ms
Confidence
inferred
Finding
spell/records#cast-time

Finding: Cast time in spell: records

0x6e3340(spellId, pet, allowNegative) returns 0 without a record or cast-time row. Else t = max((L − base)·perLevel + base, minimum) from the SpellCastTimes record named by +0x48, then the integer applier with op 10. Unless the record's +0x18 has a bit of 0x30, the caster unit exists and t > 0: with m the unit's float at +0x22c, if |m − 1| ≥ 2^-22, or m is NaN, t = rint((float)(m·t)). Finally, unless allowNegative, t ≤ 0 gives 0.

The derivation is in the doc.

Fields 3

offsetsizetypenamemeaningconfidencefinding
0x00044int32_tm_baseHolds the cast time at the base level, in msverified, proof onespell/records#cast-time
0x00084int32_tm_perLevelHolds the cast time added per level above the base levelverified, proof onespell/records#cast-time
0x000c4int32_tm_minimumHolds the floor the level-scaled cast time is raised toverified, proof onespell/records#cast-time