Fix Terminal wget bug. Issue #593

This commit is contained in:
danielyxie 2019-04-13 00:33:30 -07:00
parent 8d33c5b571
commit 98a04e4932
3 changed files with 12 additions and 2 deletions

@ -279,5 +279,7 @@ export let CONSTANTS: IMap<any> = {
* Gang changes: * Gang changes:
** Bug Fix: Gangs can no longer clash with themselve ** Bug Fix: Gangs can no longer clash with themselve
** Bug Fix: Winning against another gang should properly reduce their power ** Bug Fix: Winning against another gang should properly reduce their power
* Bug Fix: Terminal 'wget' command now works properly
` `
} }

@ -5156,7 +5156,15 @@ function NetscriptFunctions(workerScript) {
return Player.sleeves[sleeveNumber].tryBuyAugmentation(Player, aug); return Player.sleeves[sleeveNumber].tryBuyAugmentation(Player, aug);
} }
} // End sleeve }, // End sleeve
heart: {
// Easter egg function
break : function() {
if (workerScript.checkingRam) { return 0; }
return Player.karma;
}
}
} // End return } // End return
} // End NetscriptFunction() } // End NetscriptFunction()

@ -1474,7 +1474,7 @@ let Terminal = {
} }
let url = commandArray[1]; let url = commandArray[1];
let target = comanndArray[2]; let target = commandArray[2];
if (!isScriptFilename(target) && !target.endsWith(".txt")) { if (!isScriptFilename(target) && !target.endsWith(".txt")) {
return post(`wget failed: Invalid target file. Target file must be script or text file`); return post(`wget failed: Invalid target file. Target file must be script or text file`);
} }