DifficultyColor
function · ui · primitive
- Address
0x7cbd50· 186 bytes, up to0x7cbe09- Meaning
- Returns the address of the ARGB word for a unit level against a player level
- 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.
Callers 1
Callees 1
- _atexit crt
Calls and jumps by a bare address, from tables/calls.tsv.