Bladeburner automation status always displays the commands, even when disabled

This commit is contained in:
Olivier Gagnon 2021-08-25 11:50:33 -04:00
parent 7066a793a1
commit 79345a49b4
2 changed files with 6 additions and 8 deletions

File diff suppressed because one or more lines are too long

@ -606,13 +606,11 @@ export class Bladeburner implements IBladeburner {
const flag = args[1]; const flag = args[1];
if (flag.toLowerCase() === "status") { if (flag.toLowerCase() === "status") {
this.postToConsole("Automation: " + (this.automateEnabled ? "enabled" : "disabled")); this.postToConsole("Automation: " + (this.automateEnabled ? "enabled" : "disabled"));
if (this.automateEnabled) { this.postToConsole("When your stamina drops to " + formatNumber(this.automateThreshLow, 0) +
this.postToConsole("When your stamina drops to " + formatNumber(this.automateThreshLow, 0) + ", you will automatically switch to " + this.automateActionLow.name +
", you will automatically switch to " + this.automateActionLow.name + ". When your stamina recovers to " +
". When your stamina recovers to " + formatNumber(this.automateThreshHigh, 0) + ", you will automatically " +
formatNumber(this.automateThreshHigh, 0) + ", you will automatically " + "switch to " + this.automateActionHigh.name + ".");
"switch to " + this.automateActionHigh.name + ".");
}
} else if (flag.toLowerCase().includes("en")) { } else if (flag.toLowerCase().includes("en")) {
if (!(this.automateActionLow instanceof ActionIdentifier) || if (!(this.automateActionLow instanceof ActionIdentifier) ||