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

Item can not be used from the transmo chest

git-svn-id: http://svn.net-core.org/repos/t-engine4@5779 51575b47-30f0-44d4-a5cc-537603b46e54
parent eabef994
No related branches found
No related tags found
No related merge requests found
......@@ -62,6 +62,11 @@ function _M:act()
self:useEnergy()
end
function _M:canUseObject()
if self.__transmo then return false end
return engine.interface.ObjectActivable.canUseObject(self)
end
--- Use the object (quaff, read, ...)
function _M:use(who, typ, inven, item)
inven = who:getInven(inven)
......
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