benilla-re systems structs docs

CheckDamageClassConsistency

function · unassigned · orchestration

Address
0x53f510 · 167 bytes, up to 0x53f5b6
Signature
void __cdecl (void)
Meaning
Points an array at up to 7 Resistances rows in record order, keeps the last with Flags bit 0, warns on a count but 7
Confidence
verified, proof two
Name from
the community database (idb)
Finding
dbc#damage-class-check

Finding: Damage class check in dbc

0x53f510 builds a pointer array over the Resistances rows, in record order, once the tables are loaded. A table of other than 7 rows prints Warning: The Resistances table has the wrong number of entries, and at most 7 rows are taken. The array at 0xc0d530 is sized to that count and holds a pointer to each row in record order, and 0x855808 takes the position of the last row whose Flags (+0x4) has bit 0; with none it stays −1.

The derivation is in the doc.

Callers 1

Callees 3

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