From 4503d67af2e42816926b9d265b29318520836853 Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Wed, 31 May 2017 12:52:30 -0500 Subject: [PATCH] Increased ram on some servers from 2GB to 4GB. Growth rate increased slightly. Weaken() ram cost decreased to be in line with hakc() and grow() --- src/Constants.js | 4 ++-- src/NetscriptEvaluator.js | 2 +- src/Server.js | 8 ++++---- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Constants.js b/src/Constants.js index a8b76fb24..0f418ef45 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -42,7 +42,7 @@ CONSTANTS = { ScriptIfRamCost: 0.1, ScriptHackRamCost: 0.25, ScriptGrowRamCost: 0.25, - ScriptWeakenRamCost: 0.5, + ScriptWeakenRamCost: 0.25, ScriptNukeRamCost: 0.05, ScriptBrutesshRamCost: 0.05, ScriptFtpcrackRamCost: 0.05, @@ -65,7 +65,7 @@ CONSTANTS = { ScriptHNUpgCoreRamCost: 0.8, //Server constants - ServerGrowthRate: 1.0012, //Growth rate + ServerGrowthRate: 1.0015, //Growth rate ServerFortifyAmount: 0.002, //Amount by which server's security increases when its hacked ServerWeakenAmount: 0.1, //Amount by which server's security decreases when weakened diff --git a/src/NetscriptEvaluator.js b/src/NetscriptEvaluator.js index 5d1325447..130b755ed 100644 --- a/src/NetscriptEvaluator.js +++ b/src/NetscriptEvaluator.js @@ -1382,6 +1382,6 @@ function scriptCalculateGrowTime(server) { function scriptCalculateWeakenTime(server) { var difficultyMult = server.requiredHackingSkill * server.hackDifficulty; var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50); - var weakenTime = skillFactor * Player.hacking_speed_mult * 100; //This is in seconds + var weakenTime = skillFactor * Player.hacking_speed_mult * 50; //This is in seconds return weakenTime * 1000; } \ No newline at end of file diff --git a/src/Server.js b/src/Server.js index cc3775a9d..48aaa0a90 100644 --- a/src/Server.js +++ b/src/Server.js @@ -431,7 +431,7 @@ initForeignServers = function() { AddToAllServers(JoesGunsServer); var Zer0NightclubServer = new Server(); - Zer0NightclubServer.init(createRandomIp(), "zer0", "ZER0 Nightclub", true, false, false, false, 2); + Zer0NightclubServer.init(createRandomIp(), "zer0", "ZER0 Nightclub", true, false, false, false, 4); Zer0NightclubServer.setHackingParameters(75, 7500000, 25, 40); Zer0NightclubServer.setPortProperties(1); AddToAllServers(Zer0NightclubServer); @@ -443,7 +443,7 @@ initForeignServers = function() { AddToAllServers(NectarNightclubServer); var NeoNightclubServer = new Server(); - NeoNightclubServer.init(createRandomIp(), "neo-net", "Neo Nightclub Network", true, false, false, false, 2); + NeoNightclubServer.init(createRandomIp(), "neo-net", "Neo Nightclub Network", true, false, false, false, 4); NeoNightclubServer.setHackingParameters(50, 4500000, 25, 25); NeoNightclubServer.setPortProperties(1); AddToAllServers(NeoNightclubServer); @@ -473,7 +473,7 @@ initForeignServers = function() { AddToAllServers(PhantasyServer); var MaxHardwareServer = new Server(); - MaxHardwareServer.init(createRandomIp(), "max-hardware", "Max Hardware Store", true, false, false, false, 2); + MaxHardwareServer.init(createRandomIp(), "max-hardware", "Max Hardware Store", true, false, false, false, 4); MaxHardwareServer.setHackingParameters(80, 11000000, 15, 25); MaxHardwareServer.setPortProperties(1); AddToAllServers(MaxHardwareServer); @@ -492,7 +492,7 @@ initForeignServers = function() { AddToAllServers(CrushFitnessGymServer); var IronGymServer = new Server(); - IronGymServer.init(createRandomIp(), "iron-gym", "Iron Gym Network", true, false, false, false, 2); + IronGymServer.init(createRandomIp(), "iron-gym", "Iron Gym Network", true, false, false, false, 4); IronGymServer.setHackingParameters(100, 20000000, 30, 20); IronGymServer.setPortProperties(1); AddToAllServers(IronGymServer);