From 7dfb102ba79011755e290b98d48ed7d5194ae123 Mon Sep 17 00:00:00 2001 From: Daniel Xie Date: Mon, 15 May 2017 12:09:11 -0500 Subject: [PATCH] Rebalancing on RAM costs --- README.md | 25 ------------------------- src/Constants.js | 4 ++-- utils/PurchaseRamForHomeBox.js | 5 ++--- 3 files changed, 4 insertions(+), 30 deletions(-) diff --git a/README.md b/README.md index ba370f007..dcc18dfe2 100644 --- a/README.md +++ b/README.md @@ -5,31 +5,12 @@ TESTING TODO: If a server has no more money available it cannot be hacked anymore Should work automatically...because your money gained percentage will be multiplied by 0 - When the game is loaded re-load all of the scripts in runningScripts - - Seems to be working Adjust leveling formula. Goes up way too high at first http://gamedev.stackexchange.com/questions/55151/rpg-logarithmic-leveling-formula - might be too slow now? - Change Company pages to display "apply for promotion" and other stuff when you are already employed there - - - rm command seems to work - - - + Traveling - - Script logging functionality? Logs to internal "log file" (property of script itself) - Can see log with tail. - Should add something where if you click it in the "Active Scripts" GUI you can see the logs too - - Seems to work fine - - Gyms - Later..don't need for MVP - - Tasks TODO: Adding augmentations for Silhouette fac Factions Info page isn't formatted correctly @@ -57,11 +38,5 @@ Private beta feedback Also not really a big deal, but I'm at 110% zoom on chrome and the tutorial window covers some of the text - - I'd put a little popup or something when you click save, so you know - - Netscript commands: - I just got two from the top of my head: a function to get the current cash on the server, and a function to know how much a hack would take - Like, if I want to grow each time I take 5000$ from the server, that would be practical Now, only other suggestion before sleep would be to be able to buy multiple Hacknet upgrades in one click \ No newline at end of file diff --git a/src/Constants.js b/src/Constants.js index 939af58e8..d38c004a7 100644 --- a/src/Constants.js +++ b/src/Constants.js @@ -10,8 +10,8 @@ CONSTANTS = { CorpFactionRepRequirement: 250000, /* Base costs */ - BaseCostFor1GBOfRamHome: 50000, - BaseCostFor1GBOfRamServer: 40000, //1 GB of RAM + BaseCostFor1GBOfRamHome: 40000, + BaseCostFor1GBOfRamServer: 35000, //1 GB of RAM BaseCostFor1GBOfRamHacknetNode: 30000, BaseCostForHacknetNode: 1000, diff --git a/utils/PurchaseRamForHomeBox.js b/utils/PurchaseRamForHomeBox.js index 898e2fc99..a382e3d44 100644 --- a/utils/PurchaseRamForHomeBox.js +++ b/utils/PurchaseRamForHomeBox.js @@ -34,10 +34,9 @@ purchaseRamForHomeBoxCreate = function() { var numUpgrades = Math.log2(currentRam); //Calculate cost - //Base cost of RAM is 50k per 1GB...but lets have this increase by some percentage - //each time the ram has been upgraded + //Have cost increase by some percentage each time RAM has been upgraded var cost = currentRam * CONSTANTS.BaseCostFor1GBOfRamHome; - var mult = Math.pow(1.32, numUpgrades); + var mult = Math.pow(1.33, numUpgrades); cost = cost * mult; purchaseRamForHomeBoxSetText("Would you like to purchase additional RAM for your home computer?

" +