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",
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>" +
"-Fixed several small bugs<br>" +
"-Added basic array functionality to Netscript<br>" +

@ -695,7 +695,7 @@ processSingleServerGrowth = function(server, numCycles) {
var numServerGrowthCyclesAdjusted = numServerGrowthCycles * serverGrowthPercentage;
//Apply serverGrowth for the calculated number of growth cycles
var serverGrowth = Math.pow(adjGrowthRate, numServerGrowthCyclesAdjusted * Player.hacking_grow_mult) ;
var serverGrowth = Math.pow(adjGrowthRate, numServerGrowthCyclesAdjusted * Player.hacking_grow_mult);
if (serverGrowth < 1) {
console.log("WARN: serverGrowth calculated to be less than 1");
serverGrowth = 1;

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