CountFaces
function · charactermodel · primitive
- Address
0x47a4a0· 32 bytes, up to0x47a4bf- Signature
int32_t __fastcall (uint32_t race, uint32_t sex)- Meaning
- Returns the face count of a race and sex from the customization grid
- Confidence
- verified, proof one
- Finding
- charactermodel/customization#grid-lookup
- Test
charactermodel::charsec_e
Finding: Grid lookup in charactermodel: customization
0x477c20(section, variation, colour) is true when 0 ≤ section < 5, 0 ≤ variation < count of the component's entry, the entry's count is nonzero, 0 ≤ colour < colours of the variation's record and that count is nonzero. The entry is the component's race and sex.
The row for a colour is [0xc0df6c][ids[colour]] when the id is within [0xc0df70], else null. Five counts read the grid for a race and sex: 0x47a3e0 hair styles, 0x47a400 hair colours of a style, 0x47a440 skin colours
(the base count of skin variation 0), 0x47a4a0 faces, and 0x47a4c0 facial hair styles from the count table. 0x47a470 returns the colour count of skin variation 0 and nothing calls it.
The derivation is in the doc.
Callers 3
Callees 0
None by a direct call or jump.
Calls and jumps by a bare address, from tables/calls.tsv.