Small bug fix with Messages. Hacking experience gain constant is 2 rather than 1

This commit is contained in:
Daniel Xie 2017-06-20 15:36:48 -05:00
parent 0449460c4f
commit fd7796f5d1
4 changed files with 4 additions and 3 deletions

@ -1048,7 +1048,7 @@ function scriptCalculateExpGain(server) {
if (server.baseDifficulty == null) { if (server.baseDifficulty == null) {
server.baseDifficulty = server.hackDifficulty; server.baseDifficulty = server.hackDifficulty;
} }
return (server.baseDifficulty * Player.hacking_exp_mult * 0.5 + 1); return (server.baseDifficulty * Player.hacking_exp_mult * 0.5 + 2);
} }
//The same as Player's calculatePercentMoneyHacked() function but takes in the server as an argument //The same as Player's calculatePercentMoneyHacked() function but takes in the server as an argument

@ -259,7 +259,7 @@ PlayerObject.prototype.calculateExpGain = function() {
if (s.baseDifficulty == null) { if (s.baseDifficulty == null) {
s.baseDifficulty = s.hackDifficulty; s.baseDifficulty = s.hackDifficulty;
} }
return (s.baseDifficulty * this.hacking_exp_mult * 0.5 + 1); return (s.baseDifficulty * this.hacking_exp_mult * 0.5 + 2);
} }
//Hack/Analyze a server. Return the amount of time the hack will take. This lets the Terminal object know how long to disable itself for //Hack/Analyze a server. Return the amount of time the hack will take. This lets the Terminal object know how long to disable itself for

@ -706,6 +706,7 @@ var Engine = {
initFactions(); initFactions();
CompanyPositions.init(); CompanyPositions.init();
initAugmentations(); initAugmentations();
initMessages();
//Start interactive tutorial //Start interactive tutorial
iTutorialStart(); iTutorialStart();

@ -56,7 +56,7 @@ logBoxCreate = function(script) {
logBoxUpdateText = function() { logBoxUpdateText = function() {
var txt = document.getElementById("log-box-text"); var txt = document.getElementById("log-box-text");
if (logBoxCurrentScript && logBoxOpened && txt) { if (logBoxCurrentScript && logBoxOpened && txt) {
txt.innerHTML = logBoxCurrentScript.filename + ":<br>"; txt.innerHTML = logBoxCurrentScript.filename + printArray(logBoxCurrentScript.args) + ":<br><br>";
for (var i = 0; i < logBoxCurrentScript.logs.length; ++i) { for (var i = 0; i < logBoxCurrentScript.logs.length; ++i) {
txt.innerHTML += logBoxCurrentScript.logs[i]; txt.innerHTML += logBoxCurrentScript.logs[i];
txt.innerHTML += "<br>"; txt.innerHTML += "<br>";