improved display name

This commit is contained in:
Manuel Simon Hirsig
2016-03-20 17:29:16 +01:00
parent db19101dbd
commit e8e3d838a1
2 changed files with 10 additions and 3 deletions
+1 -1
View File
@@ -74,7 +74,7 @@ function private.extend_tooltip(tooltip, hyperlink, quantity)
tooltip:AddLine('Disenchants into:', color.r, color.g, color.b)
sort(distribution, function(a,b) return a.probability > b.probability end)
for _, event in distribution do
tooltip:AddLine(format(' %s%% %s x%s', event.probability * 100, Aux.info.display_name(event.item_id) or event.item_id, event.quantity), color.r, color.g, color.b)
tooltip:AddLine(format(' %s%% %s x%s', event.probability * 100, Aux.info.display_name(event.item_id, true) or event.item_id, event.quantity), color.r, color.g, color.b)
end
end