benilla-re systems structs docs

SkillColorPointer

function · ui · primitive

Address
0x529fa0 · 54 bytes, up to 0x529fd5
Signature
uint32_t * __fastcall (int32_t required, int32_t value)
Meaning
Returns the colour pointer of a skill value against its requirement: gray, green, yellow, orange or red
Confidence
verified, proof one
Finding
ui/tooltipitemhead#the-skill-colours

Finding: The skill colours in ui: Item name, bind, lock and slot lines

0x529fa0 maps a skill requirement and the player's value to a colour pointer by difficulty. The requirement is in ecx and the value in edx.

value minus requirementpointercolour
100 or more0xc0cf50gray 0xff808080
50 to 990xc0d420green 0xff40c040
25 to 490xc0cf18yellow 0xffffff00
0 to 240xc0d3a4orange 0xffff8040
below 00xc0d3a8red 0xffff2020

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.