REDIVIVUS

Proposals / #590

Name the stat layer parameter across the stat list functions

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

Ghidra v1799 · 2663303

These functions take a stat id and a word that becomes the low half of the (stat << 16) + word key, or forward it to a function that does. STATSEX_GetCurrentStat (972 callers), STATLIST_SetUnitStat and STATLIST_SetStatValueInBaseArray already name that word nLayer, so the siblings still called nParam or nParam2 should match.

Changes 10, applied together

  1. Rename variable win 0x006253b0 Stack[0xc]

    namenParam→nLayer
  2. Rename variable win 0x00625350 Stack[0xc]

    namenParam→nLayer
  3. Rename variable win 0x00625420 Stack[0xc]

    namenParam→nLayer
  4. Rename variable win 0x00625500 Stack[0xc]

    namenParam→nLayer
  5. Rename variable win 0x00625560 Stack[0xc]

    namenParam→nLayer
  6. Rename variable win 0x00625520 Stack[0xc]

    namenParam→nLayer
  7. Rename variable win 0x00625d00 Stack[0xc]

    namenParam→nLayer
  8. Rename variable win 0x006254e0 Stack[0xc]

    namenParam→nLayer
  9. Rename variable win 0x006254f0 Stack[0xc]

    namenParam→nLayer
  10. Rename variable win 0x00627150 Stack[0x10]

    namenParam→nLayer