Player starts with 8GB of RAM on home. scan-analyze displays RAM. Increased percentage money hacked

This commit is contained in:
Daniel Xie
2017-05-24 00:05:31 -05:00
parent 5d415a1a60
commit f756f09dbe
5 changed files with 9 additions and 7 deletions
+2 -1
View File
@@ -745,6 +745,7 @@ function evaluate(exp, workerScript) {
if (cost > Player.money) {
workerScript.scriptRef.log("Could not afford to purchase new Hacknet Node");
resolve("");
return;
}
//Auto generate a name for the node for now...TODO
@@ -1127,7 +1128,7 @@ function scriptCalculateExpGain(server) {
function scriptCalculatePercentMoneyHacked(server) {
var difficultyMult = (100 - server.hackDifficulty) / 100;
var skillMult = (Player.hacking_skill - (server.requiredHackingSkill - 1)) / Player.hacking_skill;
var percentMoneyHacked = difficultyMult * skillMult * Player.hacking_money_mult / 950;
var percentMoneyHacked = difficultyMult * skillMult * Player.hacking_money_mult / 875;
if (percentMoneyHacked < 0) {return 0;}
if (percentMoneyHacked > 1) {return 1;}
return percentMoneyHacked;