testing out bid based market value

This commit is contained in:
Manuel Simon Hirsig
2016-02-07 15:10:44 +01:00
parent 61efe10681
commit fae940cf9c
4 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -292,8 +292,8 @@ function m.validator(filter)
return
end
if filter.max_percent and (record.unit_buyout_price == 0
or not Aux.history.market_value(record.item_key)
or record.unit_buyout_price / Aux.history.market_value(record.item_key) * 100 > filter.max_percent)
or not aux_max_bids
or record.unit_buyout_price / aux_max_bids[record.item_key] * 100 > filter.max_percent)
then
return
end