Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
AlinaNova21 committed Sep 17, 2019
1 parent 722c703 commit d08fbaa
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/backend.js
Expand Up @@ -32,11 +32,11 @@ async function basicNPCOrders (config) {
buy.amount = market.buyAmount
buy.price = market.buyPrices[mineral]
} else if (market.priceMode === 'random') {
let amount = Math.floor(market.buyAmount * (Math.random() * market.randomVariance + (market.randomVariance/2)))
let amount = Math.floor(market.buyAmount * (Math.random() * market.randomVariance + (market.randomVariance / 2)))
buy.totalAmount = amount
buy.remainingAmount = amount
buy.amount = amount
buy.price = market.buyPrices[mineral] * (Math.random() * market.randomVariance + (market.randomVariance/2))
buy.price = market.buyPrices[mineral] * (Math.random() * market.randomVariance + (market.randomVariance / 2))
}

updates.push(buy)
Expand All @@ -61,11 +61,11 @@ async function basicNPCOrders (config) {
sell.amount = market.sellAmount
sell.price = market.sellPrices[mineral]
} else if (market.priceMode === 'random') {
let amount = Math.floor(market.buyAmount * (Math.random() * market.randomVariance + (market.randomVariance/2)))
let amount = Math.floor(market.buyAmount * (Math.random() * market.randomVariance + (market.randomVariance / 2)))
sell.totalAmount = amount
sell.remainingAmount = amount
sell.amount = amount
sell.price = market.sellPrices[mineral] * (Math.random() * market.randomVariance + (market.randomVariance/2))
sell.price = market.sellPrices[mineral] * (Math.random() * market.randomVariance + (market.randomVariance / 2))
}

updates.push(sell)
Expand Down

0 comments on commit d08fbaa

Please sign in to comment.