benilla-re systems structs docs

SlotToFaction

function · ui · primitive

Address
0x4d5620 · 22 bytes, up to 0x4d5635
Signature
uint32_t __fastcall (int32_t slot)
Meaning
Returns the faction id held in a slot, 0 for a slot outside 0 to 63
Confidence
verified, proof one
Finding
ui/reputation#reputation-slots

Finding: Reputation slots in ui: the reputation list

The client keeps 64 reputation slots of 16 bytes: the faction id (+0), the flag byte the server sent (+4), the base standing from Faction.dbc (+8) and the standing the server sent (+0xc). A slot's index is the faction's reputationListID, field 1 of its Faction.dbc row, valid from 0 to 63. Each reader tests the index below 0x40. The two writers of flags and standing do not, so a slot index from the wire above 63 writes outside the array. Every reference to the array lies inside this file's code.

The derivation is in the doc.

Callers 4

Callees 0

None by a direct call or jump.

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