Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions lua/acf/shared/sh_ace_functions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1916,13 +1916,13 @@ end

-- Legacy manufacturing cost indicator (original mass/material system).
function ACE_GetEntLegacyCost(ent, massOverride)
if not ACE_IsEnt(ent) then return 0 end
local points = ent.ACEPoints or 0
if points ~= 0 then return points end
local class = ent:GetClass()
local acf = ent.ACF or {}
if not ACE_IsEnt(ent) then return 0 end

local class = ent:GetClass()
local points = ent.ACEPoints or 0
if class ~= "acf_ammo" and points ~= 0 then return points end

local acf = ent.ACF or {}

-- Armor props: derive manufacturing cost from raw thickness (mm), then apply ductility scalar.
if ACE.ArmorClasses and ACE.ArmorClasses[class] then
Expand Down
Loading