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

allow drop & use item in dongeons

git-svn-id: http://svn.net-core.org/repos/t-engine4@449 51575b47-30f0-44d4-a5cc-537603b46e54
parent 97d77022
No related branches found
No related tags found
No related merge requests found
......@@ -216,7 +216,7 @@ function _M:runCheck()
end
function _M:doDrop(inven, item)
if game.zone.short_name ~= "wilderness" then game.logPlayer(self, "You can not drop on the world map.") return end
if game.zone.short_name == "wilderness" then game.logPlayer(self, "You can not drop on the world map.") return end
self:dropFloor(inven, item, true, true)
self:sortInven()
self:useEnergy()
......@@ -284,7 +284,7 @@ function _M:playerTakeoff()
end
function _M:playerUseItem(object, item)
if game.zone.short_name ~= "wilderness" then game.logPlayer(self, "You can not use items on the world map.") return end
if game.zone.short_name == "wilderness" then game.logPlayer(self, "You can not use items on the world map.") return end
local use_fct = function(o, item)
self.changed = true
......
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