benilla-re systems structs docs

s_exhaustionRecords

global · dbc

Address
0xc0dd70 · 8 bytes, up to 0xc0dd77
Type
uint32_t[2]
Meaning
Holds the Exhaustion.dbc records and their count
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.