From 3302c1e0599b8a827da3ec1470c90889648edae5 Mon Sep 17 00:00:00 2001 From: avirar Date: Fri, 25 Jul 2025 16:02:26 +1000 Subject: [PATCH] Check uc config option when undercutting --- tabs/post/core.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tabs/post/core.lua b/tabs/post/core.lua index 23d5906..b6b6bf9 100644 --- a/tabs/post/core.lua +++ b/tabs/post/core.lua @@ -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