benilla-re systems structs docs

Script::GetResSicknessDuration

function · ui · primitive

Address
0x51a3a0 · 268 bytes, up to 0x51a4ab
Signature
int __fastcall (lua_State *L)
Meaning
Pushes the resurrection sickness length as text, or nil below one second
Confidence
verified, proof one
Name from
the community database (idb)
Finding
ui/deathui#resurrection-sickness

Finding: Resurrection sickness in ui: death, the corpse run and resurrection

GetResSicknessDuration() pushes the length of the sickness as text, or nil. The spell is the active player's race row (ChrRaces, +0x30), or 15007 with no row; with no player the spell is 15007 at level 0 (je at 0x51a3d1). The length is the spell's SpellDuration base (+4) plus the per-level word (+8) times UNIT_FIELD_LEVEL, at most the maximum (+0xc), passed through the spell modifiers (0x6e6af0). Below 1000 milliseconds, or with a missing row, the answer is nil; otherwise it is formatted by 0x52fa50 with the GENERIC key.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 6

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