From 6316ee46d9fa94f49d9e83ddaaa0e27983a07865 Mon Sep 17 00:00:00 2001 From: kokarn Date: Fri, 24 Dec 2021 13:32:55 +0100 Subject: [PATCH] Don't use other prices than buyFor when calculating costs. Improves #94 --- src/modules/format-cost-items.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/format-cost-items.js b/src/modules/format-cost-items.js index e6377325..a8eec60c 100644 --- a/src/modules/format-cost-items.js +++ b/src/modules/format-cost-items.js @@ -30,10 +30,10 @@ function getBarterPrice(item, barters) { function getCheapestItemPrice(item, barters, useFlea = true) { let bestPrice = {}; - if(useFlea && item[priceToUse] > 0){ - bestPrice.source = 'fleaMarket'; - bestPrice.price = item[priceToUse]; - } + // if(useFlea && item[priceToUse] > 0){ + // bestPrice.source = 'fleaMarket'; + // bestPrice.price = item[priceToUse]; + // } if(!item.buyFor){ console.log(item);