refactoring

This commit is contained in:
Manuel Simon Hirsig
2016-08-27 18:52:33 +02:00
parent 72477775a6
commit 29b6a81d95
9 changed files with 29 additions and 37 deletions
+2 -2
View File
@@ -1,4 +1,4 @@
aux 'auction_listing' local gui, sorting, history, money, info = aux.gui, aux.sorting, aux.history, aux.money, aux.info
aux 'auction_listing' local gui, sorting, money, info = aux.gui, aux.sorting, aux.money, aux.info
_G.aux_price_per_unit = false
@@ -523,7 +523,7 @@ public.bids_config = {
function record_percentage(record)
if not record then return end
local historical_value = history.value(record.item_key) or 0
local historical_value = aux.history.value(record.item_key) or 0
if historical_value > 0 then
if record.unit_buyout_price > 0 then
return round(100 * record.unit_buyout_price / historical_value, 1)