From 823fda53446aada76f94c08000da30a6949bc30a Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Mon, 15 May 2017 22:31:05 -0500 Subject: [PATCH] Changed bad text in tutorial text --- README.md | 2 -- src/Terminal.js | 20 ++++++++++---------- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index d8e920c29..605efc139 100644 --- a/README.md +++ b/README.md @@ -41,6 +41,4 @@ Private beta feedback Now, only other suggestion before sleep would be to be able to buy multiple Hacknet upgrades in one click -2) - "Wrong Command! Try Again!" seemed a bit out of place for a terminal. Trying to repro this, it seems you may have already fixed it? -5) - As a programmer... you cannot take the TAB key from us in the script editor. :neutral_face: Not sure how the game itself is coded, but if you've got to EAT a ghost-tab just to give me one in-editor... let me tab out my code in-script, or I'll go mad. 6) - Maybe show total $ somewhere onscreen at all (or most) times. $/sec would also be good to know, depending on if you want the player to know that. Bottom of the menu on the left is an empty enough place to keep these. diff --git a/src/Terminal.js b/src/Terminal.js index c9f34eb35..a54cf97a0 100644 --- a/src/Terminal.js +++ b/src/Terminal.js @@ -374,19 +374,19 @@ var Terminal = { if (commandArray[0] == "help") { post(CONSTANTS.HelpText); iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; case iTutorialSteps.TerminalLs: if (commandArray[0] == "ls") { Terminal.executeListCommand(commandArray); iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; case iTutorialSteps.TerminalScan: if (commandArray[0] == "scan") { Terminal.executeScanCommand(commandArray); iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; case iTutorialSteps.TerminalConnect: @@ -399,7 +399,7 @@ var Terminal = { post("Connected to foodnstuff"); iTutorialNextStep(); } else {post("Wrong command! Try again!"); return;} - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; case iTutorialSteps.TerminalAnalyze: if (commandArray[0] == "analyze") { @@ -418,7 +418,7 @@ var Terminal = { $('input[class=terminal-input]').prop('disabled', true); iTutorialNextStep(); } else { - post("Wrong command! Try again!"); + post("Bad command. Please follow the tutorial"); } break; case iTutorialSteps.TerminalNuke: @@ -427,7 +427,7 @@ var Terminal = { foodnstuffServ.hasAdminRights = true; post("NUKE successful! Gained root access to foodnstuff"); iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; case iTutorialSteps.TerminalManualHack: if (commandArray.length == 1 && commandArray[0] == "hack") { @@ -440,14 +440,14 @@ var Terminal = { document.getElementById("terminal-input-td").innerHTML = ''; $('input[class=terminal-input]').prop('disabled', true); iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; case iTutorialSteps.TerminalCreateScript: if (commandArray.length == 2 && commandArray[0] == "nano" && commandArray[1] == "foodnstuff.script") { Engine.loadScriptEditorContent("foodnstuff", ""); iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} case iTutorialSteps.TerminalFree: if (commandArray.length == 1 && commandArray[0] == "free") { Terminal.executeFreeCommand(commandArray); @@ -459,7 +459,7 @@ var Terminal = { commandArray[0] == "run" && commandArray[1] == "foodnstuff.script") { Terminal.runScript("foodnstuff.script"); iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; case iTutorialSteps.ActiveScriptsToTerminal: if (commandArray.length == 2 && @@ -471,7 +471,7 @@ var Terminal = { } } iTutorialNextStep(); - } else {post("Wrong command! Try again!");} + } else {post("Bad command. Please follow the tutorial");} break; default: post("Please follow the tutorial, or click 'Exit Tutorial' if you'd like to skip it");