s_difficultyColorsReady
global · ui
- Address
0xcf6100· 1 bytes, up to0xcf6100- Type
uint8_t- Meaning
- Holds bit 0, set once the five difficulty colours are written
- Confidence
- verified, proof one
- Finding
- ui/unitlevels#the-difficulty-colour
Finding: The difficulty colour in ui: unit levels and the gray range
0x7cbd50(playerLevel, unitLevel) returns the address of one of five ARGB words by the difference d = unit level less player level: d of 5 or more 0xffff1919, 3 to 4 0xffff7f3f, -2 to 2 0xffffff00; below that, 0xff3fb23f when -d is at
most gap[playerLevel / 5] and 0xff7f7f7f above. The words sit in 0xcf60ec to 0xcf60fc, written once at first use.
The derivation is in the doc.