benilla-re systems structs docs

s_five

global · ui

Address
0x808bf4 · 4 bytes, up to 0x808bf7
Type
float
Meaning
Holds 5.0, the factor of the drunk level reduction
Confidence
verified, proof one
Finding
ui/unitlevels#unitlevel

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

UnitLevel(unit) raises Usage: UnitLevel("unit") for a missing argument and pushes one number. With the object held (type mask 8) the answer is UNIT_FIELD_LEVEL (+0x70), unless the first of these applies:

  1. The player exists, the unit's reaction toward it is 1 or less and the player's level is at most the unit's minus 10: -1.
  2. The unit's creature rank (0x605620) is 3, a world boss: -1.
  3. The level is above 0, the player's drunkenness is nonzero and the player can attack the unit (0x606980): the level less the drunk reduction, at least 1.

With no object held the answer is the level word at +0x12 of the party or raid record 0x496400 finds, else the number 0.

The derivation is in the doc.