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

Wear option from the transmo chest

git-svn-id: http://svn.net-core.org/repos/t-engine4@5635 51575b47-30f0-44d4-a5cc-537603b46e54
parent 35b29344
No related branches found
No related tags found
No related merge requests found
......@@ -93,13 +93,10 @@ function _M:generateList()
local transmo_chest = self.actor:attr("has_transmo")
if not self.object.__transmo then
if self.object:canUseObject() then list[#list+1] = {name="Use", action="use"} end
if self.inven == self.actor.INVEN_INVEN and self.object:wornInven() and self.actor:getInven(self.object:wornInven()) then list[#list+1] = {name="Wield/Wear", action="wear"} end
if self.inven ~= self.actor.INVEN_INVEN and self.object:wornInven() then list[#list+1] = {name="Take off", action="takeoff"} end
else
list[#list+1] = {name="Move to normal inventory", action="toinven"}
end
if not self.object.__transmo then if self.object:canUseObject() then list[#list+1] = {name="Use", action="use"} end end
if self.inven == self.actor.INVEN_INVEN and self.object:wornInven() and self.actor:getInven(self.object:wornInven()) then list[#list+1] = {name="Wield/Wear", action="wear"} end
if not self.object.__transmo then if self.inven ~= self.actor.INVEN_INVEN and self.object:wornInven() then list[#list+1] = {name="Take off", action="takeoff"} end end
if self.object.__transmo then list[#list+1] = {name="Move to normal inventory", action="toinven"} end
if self.inven == self.actor.INVEN_INVEN then list[#list+1] = {name="Drop", action="drop"} end
if self.inven == self.actor.INVEN_INVEN and transmo_chest and self.actor:transmoFilter(self.object) then list[#list+1] = {name="Transmogrify now", action="transmo"} end
if profile.auth and profile.hash_valid then list[#list+1] = {name="Link item in chat", action="chat-link"} end
......
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