Skip to content
Snippets Groups Projects
Commit 477b07b7 authored by dg's avatar dg
Browse files

safety

git-svn-id: http://svn.net-core.org/repos/t-engine4@6302 51575b47-30f0-44d4-a5cc-537603b46e54
parent 9887a33e
No related branches found
No related tags found
No related merge requests found
......@@ -975,6 +975,7 @@ function _M:doDrop(inven, item, on_done, nb)
if not ret then
local o = self:getInven(inven) and self:getInven(inven)[item]
if o and not o.plot then
if o:check("on_drop", self) then return end
local o = self:removeObject(inven, item, true)
game.logPlayer(self, "You destroy %s.", o:getName{do_colour=true, do_count=true})
self:sortInven()
......
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