CycleCreateCustomization
function · glue · primitive
- Address
0x470f80· 233 bytes, up to0x471068- Signature
void __fastcall (uint32_t which, int32_t delta)- Meaning
- Moves one of five customizations by a delta: below 0 to the last value, at or past the count to 0
- Confidence
- verified, proof one
- Finding
- glue/create#cycling-a-customization
Finding: Cycling a customization in glue: character create
CycleCharCustomization(index, delta) moves customization index by delta. A delta of 0 or
an index outside 1 to 5 does nothing. The current value plus the delta, as a signed 32-bit sum,
becomes count − 1 when negative, then 0 when at or above the count, and goes to the setter.
Hair colour counts the current style's colours.
| index | field | count | setter |
|---|---|---|---|
| 1 skin | +0x24 | 0x47a440 | 0x478790(v, 1) |
| 2 face | +0x2c | 0x47a4a0 | 0x4785b0(v, 1) |
| 3 hair style | +0x34 | 0x47a3e0 | 0x4784c0(v) |
| 4 hair colour | +0x20 | 0x47a400 | 0x4783f0(v, 1) |
| 5 facial hair | +0x30 | 0x47a4c0 | 0x478660(v, 1) |
The derivation is in the doc.
Callers 1
Callees 10
- SetCharacterHairColor charactermodel
- SetCharacterHairStyle charactermodel
- SetCharacterFace charactermodel
- SetCharacterFacialHair charactermodel
- SetCharacterSkinColor charactermodel
- CountHairStyles charactermodel
- CountHairColors charactermodel
- CountSkinColors charactermodel
- CountFaces charactermodel
- CountFacialHairStyles charactermodel
Calls and jumps by a bare address, from tables/calls.tsv.