Check uc config option when undercutting

This commit is contained in:
avirar
2025-07-25 16:02:26 +10:00
committed by GitHub
parent 9387dc1f6f
commit 3302c1e059
+3 -1
View File
@@ -390,7 +390,9 @@ end
function undercut(record, stack_size, stack)
local price = ceil(record.unit_price * (stack and record.stack_size or stack_size))
if not record.own then
--price = price - 1
if aux.account_data.undercut then
price = price - 1
end
end
return price / stack_size
end