Skip to content

Commit

Permalink
Don't use other prices than buyFor when calculating costs. Improves #94
Browse files Browse the repository at this point in the history
  • Loading branch information
kokarn committed Dec 24, 2021
1 parent 95fef38 commit 6316ee4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/modules/format-cost-items.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 6316ee4

Please sign in to comment.