bugfix
This commit is contained in:
+2
-2
@@ -8,7 +8,7 @@ local info = require 'aux.util.info'
|
||||
local money = require 'aux.util.money'
|
||||
local disenchant = require 'aux.core.disenchant'
|
||||
local history = require 'aux.core.history'
|
||||
local auction_listing = require 'aux.gui.auction_listing'
|
||||
local gui = require 'aux.gui'
|
||||
|
||||
local UNKNOWN = GRAY_FONT_COLOR_CODE .. '?' .. FONT_COLOR_CODE_CLOSE
|
||||
|
||||
@@ -92,7 +92,7 @@ function M.extend_tooltip(tooltip, link, quantity)
|
||||
end
|
||||
if settings.daily then
|
||||
local market_value = history.market_value(item_key)
|
||||
tooltip:AddLine('Today: ' .. (market_value and money.to_string2(market_value * quantity) .. ' (' .. auction_listing.percentage_historical(round(market_value / value * 100)) .. ')' or UNKNOWN), color.tooltip.value())
|
||||
tooltip:AddLine('Today: ' .. (market_value and money.to_string2(market_value * quantity) .. ' (' .. gui.percentage_historical(round(market_value / value * 100)) .. ')' or UNKNOWN), color.tooltip.value())
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user