disenchant distribution now showing explicit range instead of average

This commit is contained in:
Manuel Simon Hirsig
2016-04-09 12:19:54 +02:00
parent 8339d73d42
commit e1e941f79c
2 changed files with 46 additions and 46 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, true) or 'item:'..event.item_id, event.quantity), color.r, color.g, color.b)
tooltip:AddLine(format(' %s%% %s (%s-%s)', event.probability * 100, Aux.info.display_name(event.item_id, true) or 'item:'..event.item_id, event.min_quantity, event.max_quantity), color.r, color.g, color.b)
end
end