SetSkillLineRecSlotCount
function · spell · primitive
- Address
0x6dff60· 316 bytes, up to0x6e009b- Signature
void __thiscall (void *this, uint32_t count)- Meaning
- Sets the count of a ability slot array, growing it by its rounding step and making or destroying lists
- Confidence
- verified, proof one
- Finding
- spell/tables#slot-array-growth
Finding: Slot array growth in spell: tables
The slot array grows by a step: unless set, the step is the largest power of two not above the
wanted count (1 for 0) when it is below 21, and otherwise becomes 21 and stays; the capacity rounds
up to a multiple of it. Setting a larger count reallocates when it exceeds the capacity and inits
the new lists; a smaller count destroys the lists past it. Reallocation asks 0x646320 with flags
0x10; when that returns null it allocates anew, gives each surviving list an empty copy with its
link offset, unlinks the old members, and frees the old block. Members do not carry over; every caller
empties the slots first.
The derivation is in the doc.
Callers 1
- AddSkillLineRec spell
Callees 3
- GetSkillLineRecNextLink spell
- UnlinkSkillLineRecLink spell
- ReallocSkillLineRecSlots spell
Calls and jumps by a bare address, from tables/calls.tsv.