From 3eeab149d727ffbaab080c8b95248d79d2fa8846 Mon Sep 17 00:00:00 2001 From: Manuel Simon Hirsig Date: Fri, 10 Feb 2017 13:41:35 +0100 Subject: [PATCH] small undercutting change --- tabs/post/core.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tabs/post/core.lua b/tabs/post/core.lua index 0e87227..d23a208 100644 --- a/tabs/post/core.lua +++ b/tabs/post/core.lua @@ -343,7 +343,7 @@ function update_item_configuration() end function undercut(record, stack_size, stack) - local price = round(record.unit_price * (stack and record.stack_size or stack_size)) + local price = ceil(record.unit_price * (stack and record.stack_size or stack_size)) if not record.own then price = max(0, price - 1) end