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

Can not drop plot items

git-svn-id: http://svn.net-core.org/repos/t-engine4@6394 51575b47-30f0-44d4-a5cc-537603b46e54
parent e46fd06c
No related branches found
No related tags found
No related merge requests found
......@@ -969,6 +969,13 @@ end
function _M:doDrop(inven, item, on_done, nb)
if self.no_inventory_access then return end
local o = self:getInven(inven) and self:getInven(inven)[item]
if o and o.plot then
game.logPlayer(self, "You can not drop %s.", o:getName{do_colour=true})
return
end
if game.zone.wilderness then
Dialog:yesnoLongPopup("Warning", "You cannot drop items on the world map.\nIf you drop it, it will be lost forever.", 300, function(ret)
-- The test is reversed because the buttons are reversed, to prevent mistakes
......
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