gave some love to the tutorial.

This commit is contained in:
Olivier Gagnon
2021-06-12 04:23:15 -04:00
parent 00a5085cdf
commit cdd376f2ae
5 changed files with 121 additions and 101 deletions
+3 -3
View File
@@ -231,12 +231,12 @@ function saveAndCloseScriptEditor() {
if (ITutorial.isRunning && ITutorial.currStep === iTutorialSteps.TerminalTypeScript) {
//Make sure filename + code properly follow tutorial
if (filename !== "foodnstuff.script") {
dialogBoxCreate("Leave the script name as 'foodnstuff'!");
if (filename !== "n00dles.script") {
dialogBoxCreate("Leave the script name as 'n00dles'!");
return;
}
code = code.replace(/\s/g, "");
if (code.indexOf("while(true){hack('foodnstuff');}") == -1) {
if (code.indexOf("while(true){hack('n00dles');}") == -1) {
dialogBoxCreate("Please copy and paste the code from the tutorial!");
return;
}