REDIVIVUS

Proposals / #1356

Type the blood-particle helper's EDX fallback count as int

checked · by eejitgames · submitted 2026-11-06

MONSTER_SpawnBloodParticles (004af890) declares EDX as D2MonStats2Txt *, but every incoming call supplies an immediate count: 5 at 004c7cd4/004c7f34/004d9753, 3 at 004f118b, and 1 at 004ca051/004b03df/004b044d. The body preserves EDX in EDI, stores it as the fallback spawn count at [EBP-4], optionally replaces it with item_extrablood, then uses signed positivity and loop-limit comparisons. The actual MonStats2 row is looked up independently. Retype this one input as int while preserving its chosen name and storage. Full target and all seven incoming call sites inspected; no matching correction found in current issues or accessible proposals. Static database correction.

Changes 1, applied together

  1. Retype variable win 0x004af890 EDX

    typeD2MonStats2Txt *→int