Skip to content
Snippets Groups Projects
Commit fdeca8f6 authored by Hachem_Muche's avatar Hachem_Muche
Browse files

Round prices to nearest 0.01 gold

parent 3357abbc
No related branches found
No related tags found
1 merge request!189Store/transmo stacked item price fix
......@@ -236,7 +236,7 @@ function _M:getObjectPrice(o, what, nb)
nb = 1
price = math.min(o:getPrice()*price_mult, price_limit)
end
return math.ceil(price * 10) / 10, nb -- round up to nearest 0.1 gold
return math.round(price, .01), nb -- round to the nearest 0.1 gold
end
--- Called to describe an object's price, being to sell or to buy
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment