Fix Terminal wget bug. Issue #593

This commit is contained in:
danielyxie 2019-04-13 00:33:30 -07:00 committed by danielyxie
parent f6af9e94ab
commit 3d1684f825
3 changed files with 12 additions and 2 deletions

@ -279,5 +279,7 @@ export let CONSTANTS: IMap<any> = {
* Gang changes:
** Bug Fix: Gangs can no longer clash with themselve
** 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);
}
} // End sleeve
}, // End sleeve
heart: {
// Easter egg function
break : function() {
if (workerScript.checkingRam) { return 0; }
return Player.karma;
}
}
} // End return
} // End NetscriptFunction()

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