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

Ctrl-compate works again

git-svn-id: http://svn.net-core.org/repos/t-engine4@4714 51575b47-30f0-44d4-a5cc-537603b46e54
parent 7f86595f
No related branches found
No related tags found
No related merge requests found
......@@ -37,7 +37,7 @@ function _M:init(title, actor, filter, action, on_select)
-- Add tooltips
self.on_select = function(item)
if item.last_display_x and item.object then
game:tooltipDisplayAtMap(item.last_display_x, item.last_display_y, item.object:getDesc({do_color=true}))
game:tooltipDisplayAtMap(item.last_display_x, item.last_display_y, item.object:getDesc({do_color=true}, self.actor:getInven(item.object:wornInven())))
elseif item.last_display_x and item.data and item.data.desc then
game:tooltipDisplayAtMap(item.last_display_x, item.last_display_y, item.data.desc, {up=true})
end
......
......@@ -69,7 +69,7 @@ end
function _M:select(item)
if item and self.uis[2] then
if item.object then
self.c_desc:switchItem(item, item.object:getDesc({do_color=true}))
self.c_desc:switchItem(item, item.object:getDesc({do_color=true}, self.actor:getInven(item.object:wornInven())))
end
end
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