From 88835c5738bba6590ab22582629cfc3c2de8fad0 Mon Sep 17 00:00:00 2001 From: idinium96 Date: Sun, 2 Aug 2020 19:27:36 +0800 Subject: [PATCH] change to "DISABLE_CRAFTING_METAL" --- README.md | 2 +- src/classes/MyHandler.ts | 2 +- template-three-bots.ecosystem.json | 2 +- template-two-bots.ecosystem.json | 2 +- template.ecosystem.json | 2 +- template.env | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index e81ebbbc7..a92defbe6 100644 --- a/README.md +++ b/README.md @@ -200,7 +200,7 @@ You can run your bot without this first, which then on the first run, it will pr #### Set to true if want to disable - `DISABLE_INVENTORY_SORT`: [true|false] Default: `false`. Sort your bot inventory. - `DISABLE_LISTINGS`: [true|false] Default: `false`. This is used if you want to temporarily disable trading while your bot is alive. -- `DISABLE_CRAFTING`: [true|false] Default: `false`. **NOT RECOMMENDED** to set is as `true`, as it cause bot and trade partner to not be able to trade because of missing pure changes. +- `DISABLE_CRAFTING_METAL`: [true|false] Default: `false`. **NOT RECOMMENDED** to set is as `true`, as it cause bot and trade partner to not be able to trade because of missing pure changes. - `DISABLE_CRAFTING_WEAPONS`: [true|false] Default: `false`. Set to **`true` if you DO NOT** want your bot to automatically craft any duplicated craftable weapons. - `DISABLE_MESSAGES`: [true|false] Default: `false`. When `true`, people (that are friend with your bot) will be unable send messages to you with "!message" command. - `DISABLE_SOMETHING_WRONG_ALERT`: [true|false] - Default: `false`. My custom - Used to notify owner if your bot has a queue problem/full inventory/low in pure (if Autokeys is on). diff --git a/src/classes/MyHandler.ts b/src/classes/MyHandler.ts index 264035643..fa9ba487b 100644 --- a/src/classes/MyHandler.ts +++ b/src/classes/MyHandler.ts @@ -2224,7 +2224,7 @@ Autokeys status:- } private keepMetalSupply(): void { - if (process.env.DISABLE_CRAFTING === 'true') { + if (process.env.DISABLE_CRAFTING === 'true' || process.env.DISABLE_CRAFTING_METAL === 'true') { return; } const pure = this.currPure(); diff --git a/template-three-bots.ecosystem.json b/template-three-bots.ecosystem.json index 04038e19f..5932b98da 100644 --- a/template-three-bots.ecosystem.json +++ b/template-three-bots.ecosystem.json @@ -334,7 +334,7 @@ "DISABLE_INVENTORY_SORT": false, "DISABLE_LISTINGS": false, - "DISABLE_CRAFTING": false, + "DISABLE_CRAFTING_METAL": false, "DISABLE_CRAFTING_WEAPONS": false, "DISABLE_MESSAGES": false, "DISABLE_SOMETHING_WRONG_ALERT": false, diff --git a/template-two-bots.ecosystem.json b/template-two-bots.ecosystem.json index 2f4f7f1b7..f949e3aea 100644 --- a/template-two-bots.ecosystem.json +++ b/template-two-bots.ecosystem.json @@ -38,7 +38,7 @@ "DISABLE_INVENTORY_SORT": false, "DISABLE_LISTINGS": false, - "DISABLE_CRAFTING": false, + "DISABLE_CRAFTING_METAL": false, "DISABLE_CRAFTING_WEAPONS": false, "DISABLE_MESSAGES": false, "DISABLE_SOMETHING_WRONG_ALERT": false, diff --git a/template.ecosystem.json b/template.ecosystem.json index 9ca6b07ae..c5a8930c3 100644 --- a/template.ecosystem.json +++ b/template.ecosystem.json @@ -38,7 +38,7 @@ "DISABLE_INVENTORY_SORT": false, "DISABLE_LISTINGS": false, - "DISABLE_CRAFTING": false, + "DISABLE_CRAFTING_METAL": false, "DISABLE_CRAFTING_WEAPONS": false, "DISABLE_MESSAGES": false, "DISABLE_SOMETHING_WRONG_ALERT": false, diff --git a/template.env b/template.env index 49b50815b..d77102786 100644 --- a/template.env +++ b/template.env @@ -25,7 +25,7 @@ SCRAP_ADJUSTMENT_VALUE=1 DISABLE_INVENTORY_SORT=false DISABLE_LISTINGS=false -DISABLE_CRAFTING=false +DISABLE_CRAFTING_METAL=false DISABLE_CRAFTING_WEAPONS=false DISABLE_MESSAGES=false DISABLE_SOMETHING_WRONG_ALERT=false