some renaming
This commit is contained in:
+4
-4
@@ -197,12 +197,12 @@ local methods = {
|
||||
GetRecordPercent = function(self, record)
|
||||
if not record then return end
|
||||
-- cache the market value on the record
|
||||
record.market_value = record.market_value or Aux.history.value(record.item_key) or 0
|
||||
if record.market_value > 0 then
|
||||
record.historical_value = record.market_value or Aux.history.value(record.item_key) or 0
|
||||
if record.historical_value > 0 then
|
||||
if record.unit_buyout_price > 0 then
|
||||
return Aux.round(100 * record.unit_buyout_price / record.market_value, 1)
|
||||
return Aux.round(100 * record.unit_buyout_price / record.historical_value, 1)
|
||||
end
|
||||
return nil, Aux.round(100 * record.unit_bid_price / record.market_value, 1)
|
||||
return nil, Aux.round(100 * record.unit_bid_price / record.historical_value, 1)
|
||||
end
|
||||
end,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user