benilla-re systems structs docs

LoadExhaustionTable

function · ui · primitive

Address
0x544da0 · 570 bytes, up to 0x544fd9
Signature
void __thiscall (void *this)
Meaning
Loads Exhaustion.dbc, checking 15 fields and 60 bytes a record, and indexes the rows by id
Confidence
verified, proof one
Finding
ui/rested#exhaustion-table

Finding: Exhaustion table in ui: rested experience functions

Exhaustion.dbc is loaded at startup. The loader accepts only 15 fields and 60 bytes a record; any other layout is a fatal error. It builds an index by row id: the cell index[row.id] holds the row. The store keeps the index at 0xc0dd78 and the highest id at 0xc0dd7c, -1 until loaded. A row is the id (+0), a threshold (+4), a factor, a float (+8), two floats that no Lua function reads (+0xc, +0x10) and the name, one pointer per locale from +0x14.

The derivation is in the doc.

Callers 1

Callees 9

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