greatly simplified history

This commit is contained in:
Manuel Simon Hirsig
2016-02-08 21:43:40 +01:00
parent ab11da7039
commit a19eec7758
12 changed files with 126 additions and 178 deletions
+1 -1
View File
@@ -192,7 +192,7 @@ 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.market_value(record.item_key) or 0
record.market_value = record.market_value or Aux.history.value(record.item_key) or 0
if record.market_value > 0 then
if record.unit_buyout_price > 0 then
return Aux.round(100 * record.unit_buyout_price / record.market_value, 1)