Fixed bug where you could purchase Darkweb items without router

This commit is contained in:
Daniel Xie 2017-06-13 20:07:02 -05:00
parent 69d4af01ff
commit 4aa7edb576
3 changed files with 8 additions and 2 deletions

@ -573,6 +573,10 @@ CONSTANTS = {
"RAM Upgrades on your home computer", "RAM Upgrades on your home computer",
Changelog: Changelog:
"v0.21.0<br>" +
"-Added basic theme functionality - All credit goes to /u/0x726564646974 who implemented the awesome feature<br>" +
"-Optimized Script objects, which were causing save errors when the player had too many scripts<br>" +
"-Fixed bug where you could purchase Darkweb items without TOR router"
"v0.20.2<br>" + "v0.20.2<br>" +
"-Fixed several small bugs<br>" + "-Fixed several small bugs<br>" +
"-Added basic array functionality to Netscript<br>" + "-Added basic array functionality to Netscript<br>" +

@ -595,7 +595,9 @@ var Terminal = {
$('input[class=terminal-input]').prop('disabled', true); $('input[class=terminal-input]').prop('disabled', true);
break; break;
case "buy": case "buy":
if (SpecialServerIps.hasOwnProperty("Darkweb Server")) {
executeDarkwebTerminalCommand(commandArray); executeDarkwebTerminalCommand(commandArray);
}
break; break;
case "cat": case "cat":
if (commandArray.length != 2) { if (commandArray.length != 2) {