Check uc config option when undercutting
This commit is contained in:
+3
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user