Skip to content

Commit

Permalink
fix autokeys command
Browse files Browse the repository at this point in the history
  • Loading branch information
idinium96 committed Jul 31, 2020
1 parent 01797da commit 52cb17f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/classes/Commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -501,11 +501,17 @@ export = class Commands {
? 'Banking' + (autokeys.scrapAdjustmentEnabled ? ' (default price)' : '')
: autokeys.isBuying
? 'Buying for ' +
Currencies.toRefined(keyPrices.buy.toValue() + autokeys.scrapAdjustmentValue).toString() +
Currencies.toRefined(
keyPrices.buy.toValue() +
(autokeys.scrapAdjustmentEnabled ? autokeys.scrapAdjustmentValue : 0)
) +
' ref' +
(autokeys.scrapAdjustmentEnabled ? ' (+' + autokeys.scrapAdjustmentValue + ' scrap)' : '')
: 'Selling for ' +
Currencies.toRefined(keyPrices.sell.toValue() - autokeys.scrapAdjustmentValue).toString() +
Currencies.toRefined(
keyPrices.sell.toValue() -
(autokeys.scrapAdjustmentEnabled ? autokeys.scrapAdjustmentValue : 0)
) +
' ref' +
(autokeys.scrapAdjustmentEnabled ? ' (-' + autokeys.scrapAdjustmentValue + ' scrap)' : '')
: 'Not active'
Expand Down
2 changes: 1 addition & 1 deletion src/classes/MyHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export = class MyHandler extends Handler {
this.scrapAdjustmentValue = scrapValue;
}

if (process.env.DISABLE_SCRAP_ADJUSTMENT === 'false') {
if (process.env.DISABLE_SCRAP_ADJUSTMENT !== 'true') {
this.isUsingAutoPrice = false;
}

Expand Down

0 comments on commit 52cb17f

Please sign in to comment.