From 55d73c330ece8d619e77fa855c6a0bcd711b81e2 Mon Sep 17 00:00:00 2001 From: Cyberpangolin Date: Mon, 13 Jun 2016 22:49:51 +0200 Subject: [PATCH] Update shop.lua --- shop.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/shop.lua b/shop.lua index 64b84a4..dc920e1 100644 --- a/shop.lua +++ b/shop.lua @@ -176,7 +176,7 @@ function minercantile.shop.get_buy_price(itname) if minercantile.stock.items[itname].price ~= nil then -- if defined price price = math.ceil(minercantile.stock.items[itname].price) else - price = math.ceil((money/10)/(math.log(nb+2000-99)*10)*1000000/(math.pow((nb+2000-99),(2.01)))) + price = math.ceil((money/1000)/(math.log(nb+2000-99)*10)*1000000/(math.pow((nb+2000-99),(2.01)))) end if price and price < 1 then price = 1 end return price @@ -196,7 +196,7 @@ function minercantile.shop.get_sell_price(itname, wear) if minercantile.stock.items[itname].price ~= nil then -- if defined price price = math.floor(minercantile.stock.items[itname].price) else - price = math.floor(((money/10)/(math.log(nb+2000+99)*10)*1000000/(math.pow((nb+2000+99),(2.01))))+0.5) + price = math.floor(((money/1000)/(math.log(nb+2000+99)*10)*1000000/(math.pow((nb+2000+99),(2.01))))+0.5) end if wear and wear > 0 then --calcul price with % wear, (0-65535)