REDIVIVUS

Proposals / #638

Name DAMAGE_CalculateHitCheck's to-hit bonus and range parameters

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

Ghidra v1799 · 2663303

Stack[0x8] goes straight to DAMAGE_RollAttackHit's nToHitBonusExtra, so it takes that name. Stack[0xc], when nonzero, is added to the attacker's melee range and subtracted from the reach passed to IsInMeleeRange. The function's plate already describes the range as widened by it.

Changes 2, applied together

  1. Rename variable win 0x0057ec10 Stack[0x8]

    namenParam1→nToHitBonusExtra
  2. Rename variable win 0x0057ec10 Stack[0xc]

    namenParam2→nExtraRange