diff --git a/game/modules/tome/dialogs/ShowEquipInven.lua b/game/modules/tome/dialogs/ShowEquipInven.lua index 54cf015b350d0598e32e0cd63b4a3f14e5287de9..f41e169f26d16fde9da020156bd294cef185944c 100644 --- a/game/modules/tome/dialogs/ShowEquipInven.lua +++ b/game/modules/tome/dialogs/ShowEquipInven.lua @@ -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 diff --git a/game/modules/tome/dialogs/ShowEquipment.lua b/game/modules/tome/dialogs/ShowEquipment.lua index 238d1ebb96be53e22e61cbb535e2853a01fec6a7..10862c308074e1dc04deb1d9e04ee17d1f4c934b 100644 --- a/game/modules/tome/dialogs/ShowEquipment.lua +++ b/game/modules/tome/dialogs/ShowEquipment.lua @@ -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