mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-19 04:35:46 +01:00
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()
This commit is contained in:
parent
d825b25c73
commit
4503d67af2
@ -42,7 +42,7 @@ CONSTANTS = {
|
|||||||
ScriptIfRamCost: 0.1,
|
ScriptIfRamCost: 0.1,
|
||||||
ScriptHackRamCost: 0.25,
|
ScriptHackRamCost: 0.25,
|
||||||
ScriptGrowRamCost: 0.25,
|
ScriptGrowRamCost: 0.25,
|
||||||
ScriptWeakenRamCost: 0.5,
|
ScriptWeakenRamCost: 0.25,
|
||||||
ScriptNukeRamCost: 0.05,
|
ScriptNukeRamCost: 0.05,
|
||||||
ScriptBrutesshRamCost: 0.05,
|
ScriptBrutesshRamCost: 0.05,
|
||||||
ScriptFtpcrackRamCost: 0.05,
|
ScriptFtpcrackRamCost: 0.05,
|
||||||
@ -65,7 +65,7 @@ CONSTANTS = {
|
|||||||
ScriptHNUpgCoreRamCost: 0.8,
|
ScriptHNUpgCoreRamCost: 0.8,
|
||||||
|
|
||||||
//Server constants
|
//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
|
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
|
ServerWeakenAmount: 0.1, //Amount by which server's security decreases when weakened
|
||||||
|
|
||||||
|
@ -1382,6 +1382,6 @@ function scriptCalculateGrowTime(server) {
|
|||||||
function scriptCalculateWeakenTime(server) {
|
function scriptCalculateWeakenTime(server) {
|
||||||
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
|
var difficultyMult = server.requiredHackingSkill * server.hackDifficulty;
|
||||||
var skillFactor = (2.5 * difficultyMult + 500) / (Player.hacking_skill + 50);
|
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;
|
return weakenTime * 1000;
|
||||||
}
|
}
|
@ -431,7 +431,7 @@ initForeignServers = function() {
|
|||||||
AddToAllServers(JoesGunsServer);
|
AddToAllServers(JoesGunsServer);
|
||||||
|
|
||||||
var Zer0NightclubServer = new Server();
|
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.setHackingParameters(75, 7500000, 25, 40);
|
||||||
Zer0NightclubServer.setPortProperties(1);
|
Zer0NightclubServer.setPortProperties(1);
|
||||||
AddToAllServers(Zer0NightclubServer);
|
AddToAllServers(Zer0NightclubServer);
|
||||||
@ -443,7 +443,7 @@ initForeignServers = function() {
|
|||||||
AddToAllServers(NectarNightclubServer);
|
AddToAllServers(NectarNightclubServer);
|
||||||
|
|
||||||
var NeoNightclubServer = new Server();
|
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.setHackingParameters(50, 4500000, 25, 25);
|
||||||
NeoNightclubServer.setPortProperties(1);
|
NeoNightclubServer.setPortProperties(1);
|
||||||
AddToAllServers(NeoNightclubServer);
|
AddToAllServers(NeoNightclubServer);
|
||||||
@ -473,7 +473,7 @@ initForeignServers = function() {
|
|||||||
AddToAllServers(PhantasyServer);
|
AddToAllServers(PhantasyServer);
|
||||||
|
|
||||||
var MaxHardwareServer = new Server();
|
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.setHackingParameters(80, 11000000, 15, 25);
|
||||||
MaxHardwareServer.setPortProperties(1);
|
MaxHardwareServer.setPortProperties(1);
|
||||||
AddToAllServers(MaxHardwareServer);
|
AddToAllServers(MaxHardwareServer);
|
||||||
@ -492,7 +492,7 @@ initForeignServers = function() {
|
|||||||
AddToAllServers(CrushFitnessGymServer);
|
AddToAllServers(CrushFitnessGymServer);
|
||||||
|
|
||||||
var IronGymServer = new Server();
|
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.setHackingParameters(100, 20000000, 30, 20);
|
||||||
IronGymServer.setPortProperties(1);
|
IronGymServer.setPortProperties(1);
|
||||||
AddToAllServers(IronGymServer);
|
AddToAllServers(IronGymServer);
|
||||||
|
Loading…
Reference in New Issue
Block a user