Skip to content
Snippets Groups Projects
Commit d3da4c01 authored by DarkGod's avatar DarkGod
Browse files

Tagged items can not be sold

parent 100b6d48
No related branches found
No related tags found
No related merge requests found
......@@ -113,6 +113,7 @@ end
-- @param nb number of items (if stacked) to sell
-- @return true if allowed to sell
function _M:trySell(who, o, item, nb)
if o.__tagged then return end
local price = self:getObjectPrice(o, "sell")
if price <= 0 or nb <= 0 then return end
price = math.min(price * nb, self.store.purse * nb)
......
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