Skip to content

Fix #248: fix legacy manufacturing cost for gun ammo crates#253

Open
Ally-for-Hire wants to merge 1 commit intoACE-Project-Team:devfrom
Ally-for-Hire:fix/248-gun-ammo-legacy-cost
Open

Fix #248: fix legacy manufacturing cost for gun ammo crates#253
Ally-for-Hire wants to merge 1 commit intoACE-Project-Team:devfrom
Ally-for-Hire:fix/248-gun-ammo-legacy-cost

Conversation

@Ally-for-Hire
Copy link
Copy Markdown
Contributor

Fixes #248.

Gun ammo crates now use their dedicated legacy manufacturing-cost calculation instead of sometimes falling back to the generic ACEPoints value. This restores proper manufacturing cost reporting for gun ammo, while leaving existing missile behavior intact.

What Changed

  • Updated ACE_GetEntLegacyCost() to avoid returning early from ent.ACEPoints for acf_ammo.
  • Let ammo crates continue into the existing ammo-specific legacy cost path.
  • Kept the current behavior unchanged for non-ammo entities.

Why This Was Broken

Ammo crates already populate ACEPoints, and ACE_GetEntLegacyCost() was returning that value before it ever reached the ammo-specific manufacturing-cost logic. That meant gun ammo could report a generic legacy points value instead of its actual manufacturing cost.

Missiles still appeared correct because their path already aligned with the existing ammo handling.

@Ally-for-Hire Ally-for-Hire changed the base branch from master to dev April 8, 2026 01:13
@Ally-for-Hire Ally-for-Hire changed the title Fix legacy manufacturing cost for gun ammo crates Fix #248: fix legacy manufacturing cost for gun ammo crates Apr 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gun Ammo has no Manufacturing Cost

1 participant