From d48428f0e8a95a5714969f4badea31f75bce4cec Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Sun, 11 Jun 2017 15:36:36 -0500 Subject: [PATCH] Increased cost of RAM by 10%. Decreased cost multiplier of NeuroFlux Governor augmentation --- index.html | 1 - src/Constants.js | 6 +++--- src/Location.js | 13 +------------ 3 files changed, 4 insertions(+), 16 deletions(-) diff --git a/index.html b/index.html index d2c40cd7f..7f66c8930 100644 --- a/index.html +++ b/index.html @@ -602,7 +602,6 @@ Take Leadership course - Purchase 1GB Server - $75,000 Purchase 2GB Server - $150,000 Purchase 4GB Server - $300,000 Purchase 8GB Server - $600,000 diff --git a/src/Constants.js b/src/Constants.js index 97f3a8357..9e6967585 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -10,8 +10,8 @@ CONSTANTS = { CorpFactionRepRequirement: 250000, /* Base costs */ - BaseCostFor1GBOfRamHome: 40000, - BaseCostFor1GBOfRamServer: 50000, //1 GB of RAM + BaseCostFor1GBOfRamHome: 45000, + BaseCostFor1GBOfRamServer: 55000, //1 GB of RAM BaseCostFor1GBOfRamHacknetNode: 30000, BaseCostForHacknetNode: 1000, @@ -30,7 +30,7 @@ CONSTANTS = { /* Augmentation */ //NeuroFlux Governor cost multiplier as you level up - NeuroFluxGovernorLevelMult: 1.14, + NeuroFluxGovernorLevelMult: 1.13, /* Script related things */ //Time (ms) it takes to run one operation in Netscript. diff --git a/src/Location.js b/src/Location.js index 8cfa2e190..b2d94318a 100644 --- a/src/Location.js +++ b/src/Location.js @@ -124,7 +124,6 @@ displayLocationContent = function() { var classManagement = document.getElementById("location-management-class"); var classLeadership = document.getElementById("location-leadership-class"); - var purchase1gb = document.getElementById("location-purchase-1gb"); var purchase2gb = document.getElementById("location-purchase-2gb"); var purchase4gb = document.getElementById("location-purchase-4gb"); var purchase8gb = document.getElementById("location-purchase-8gb"); @@ -210,7 +209,6 @@ displayLocationContent = function() { classManagement.style.display = "none"; classLeadership.style.display = "none"; - purchase1gb.style.display = "none"; purchase2gb.style.display = "none"; purchase4gb.style.display = "none"; purchase8gb.style.display = "none"; @@ -224,7 +222,6 @@ displayLocationContent = function() { purchaseTor.style.display = "none"; purchaseHomeRam.style.display = "none"; - purchase1gb.innerHTML = "Purchase 1GB Server - $" + formatNumber(1*CONSTANTS.BaseCostFor1GBOfRamServer, 2); purchase2gb.innerHTML = "Purchase 2GB Server - $" + formatNumber(2*CONSTANTS.BaseCostFor1GBOfRamServer, 2); purchase4gb.innerHTML = "Purchase 4GB Server - $" + formatNumber(4*CONSTANTS.BaseCostFor1GBOfRamServer, 2); purchase8gb.innerHTML = "Purchase 8GB Server - $" + formatNumber(8*CONSTANTS.BaseCostFor1GBOfRamServer, 2); @@ -433,7 +430,6 @@ displayLocationContent = function() { securityEngineerJob.style.display = "block"; networkEngineerJob.style.display = "block"; - purchase1gb.style.display = "block"; purchase2gb.style.display = "block"; purchase4gb.style.display = "block"; purchase8gb.style.display = "block"; @@ -594,7 +590,6 @@ displayLocationContent = function() { softwareJob.style.display = "block"; softwareConsultantJob.style.display = "block"; businessJob.style.display = "block"; - purchase1gb.style.display = "block"; purchase2gb.style.display = "block"; purchase4gb.style.display = "block"; purchaseTor.style.display = "block"; @@ -1352,7 +1347,6 @@ initLocationButtons = function() { var work = document.getElementById("location-work"); - var purchase1gb = document.getElementById("location-purchase-1gb"); var purchase2gb = document.getElementById("location-purchase-2gb"); var purchase4gb = document.getElementById("location-purchase-4gb"); var purchase8gb = document.getElementById("location-purchase-8gb"); @@ -1447,12 +1441,7 @@ initLocationButtons = function() { Player.applyForPartTimeWaiterJob(); return false; }); - - purchase1gb.addEventListener("click", function() { - purchaseServerBoxCreate(1, 1 * CONSTANTS.BaseCostFor1GBOfRamServer); - return false; - }); - + purchase2gb.addEventListener("click", function() { purchaseServerBoxCreate(2, 2 * CONSTANTS.BaseCostFor1GBOfRamServer); return false;