benilla-re systems structs docs

s_difficultyGrayGaps

global · ui

Address
0x81dda8 · 80 bytes, up to 0x81ddf7
Type
uint32_t[20]
Meaning
Holds the gray-range gap by the player's level divided by 5, read by the difficulty colour
Confidence
verified, proof one
Finding
ui/unitlevels#the-gray-range

Finding: The gray range in ui: unit levels and the gray range

GetQuestGreenRange() pushes gap[min(level / 5, 19)] for the active player's level, or 0 with no player. gap is the table 0x8076c0 of 20 dwords: 4, 4, 5, 5, 6, 6, 7, 7, 8, 9, 10, 11, then 12 for the last eight. The index saturates at 19, so a level of 100 and above reads 12.

The derivation is in the doc.