benilla-re systems structs docs

RebuildSkillList

function · ui · primitive

Address
0x4d2cb0 · 531 bytes, up to 0x4d2ec2
Meaning
Rebuilds the skills list from the player's skill slots and sorts it
Confidence
verified, proof one
Finding
tradeskill/skills#rebuilding-the-list

Finding: Rebuilding the list in tradeskill: skills

0x4d2cb0 rebuilds the list from the local player and does nothing for another player object. It sets the collapse mask to all ones and zeroes the counts and the points, and leaves the selection. It walks the 128 skill slots and keeps a skill when its SkillLine row, its race-class row (0x6ddf90) and its category row exist and the race-class flags lack bit 0x2. A skill with rank 0 stays only when flag bit 0x1 is set, or when bit 0x4 is set and the player's level reaches the row's level (+0x14). Each kept skill becomes a row; the first skill of a category also adds the category and a header row. Last it orders the list and raises SKILL_LINES_CHANGED.

The derivation is in the doc.

Callers 4

Callees 4

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