slash refactoring, usage printout

This commit is contained in:
Manuel Simon Hirsig
2016-12-11 11:10:59 +01:00
parent 49591f7fb0
commit 3f563ead76
5 changed files with 56 additions and 42 deletions
+2 -2
View File
@@ -84,13 +84,13 @@ function extend_tooltip(tooltip, link, quantity)
end
end
end
if aux_tooltip_vendor_buy then
if aux_tooltip_merchant_buy then
local _, price, limited = cache.merchant_info(item_id)
if price then
tooltip:AddLine('Vendor Buy ' .. (limited and '(limited): ' or ': ') .. money.to_string2(price * quantity), color.tooltip.merchant())
end
end
if aux_tooltip_vendor_sell then
if aux_tooltip_merchant_sell then
local price = cache.merchant_info(item_id)
if price ~= 0 then
tooltip:AddLine('Vendor Sell: ' .. (price and money.to_string2(price * quantity) or GRAY_FONT_COLOR_CODE .. '---' .. FONT_COLOR_CODE_CLOSE), color.tooltip.merchant())