|
|
|
@ -165,7 +165,13 @@ function GameInterface.createThingMenu(menuPosition, lookThing, useThing, creatu
|
|
|
|
|
menu:addOption('Trade with ...', function() print('trade with') end)
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
-- check for move up
|
|
|
|
|
if lookThing then
|
|
|
|
|
local parentContainer = lookThing:getParentContainer()
|
|
|
|
|
if parentContainer and parentContainer:hasParent() then
|
|
|
|
|
local pos = lookThing:getPosition()
|
|
|
|
|
menu:addOption('Move up', function() g_game.move(lookThing, { x=pos.x, y=pos.y, z=254 }, lookThing:getCount()) end)
|
|
|
|
|
end
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
if creatureThing then
|
|
|
|
|
menu:addSeparator()
|
|
|
|
|