REDIVIVUS

Proposals / #1446

Mac SKILLNEC_AddHitpoints: int32_t __fastcc (D2UnitStrc* pUnit ECX, int32_t nHpAmount EDX)

checked · by KierTaylor · submitted 2026-11-08

Resubmit of #1250 (approved, then stale because __fastcall is not defined on Mac), now with __fastcc. ECX = pUnit (stat 6 get/set), EDX = HP amount. It returns the HP actually added, and callers use it (SUB EDI,EAX at 0x00266d57; SUB ESI,EAX at 0x00267ae8). Plain RET. Windows twin 0x005c5f10.

Changes 1, applied together

  1. Set prototype mac 0x00266dbe

    signatureundefined SKILLNEC_AddHitpoints(void)→int32_t SKILLNEC_AddHitpoints(D2UnitStrc* pUnit, int32_t nHpAmount)
    conventionunknown→__fastcc