REDIVIVUS

Proposals / #653

Name the life-in-128ths parameter of UnitQueuePacket0xAB and the 0x6D sender

applied · by dtchitt · submitted 2026-11-01, applied 2026-11-01

Ghidra v1799 · 2663303

Both receive life on a 0 to 128 scale. MONSTER_GetHpPercent128 computes it as (hp<<7)/max with 0x80 for full, and its result is what these callers pass. On the client, 0xAB's byte is shifted into hitpoints for monsters and turned into a percent with *100>>7 for players. Captures from a running game fit: 0x6D read 0x80 in all 145 samples, and 0xAB read 74, 10 and 21 on one monster. The field for this value in 0xAB is called nHpPercent, but the scale is 128, so the name says so.

Changes 2, applied together

  1. Rename variable win 0x00571a10 DL

    namebParam→nHpPercent128
  2. Rename variable win 0x0053bb70 Stack[0xc]

    namebParam→nHpPercent128