Fix a few bugs and also added the concept of gang power multiplier

This commit is contained in:
Olivier Gagnon
2021-11-05 13:20:52 -04:00
parent 73d0f2074c
commit 362d2eb51d
5 changed files with 21 additions and 2 deletions
+1
View File
@@ -362,6 +362,7 @@ export function NetscriptFunctions(workerScript: WorkerScript): NS {
Player.scriptProdSinceLastAug += moneyGained;
workerScript.scriptRef.recordHack(server.hostname, moneyGained, threads);
Player.gainHackingExp(expGainedOnSuccess);
if (manual) Player.gainIntelligenceExp(expGainedOnSuccess / CONSTANTS.IntelligenceTerminalHackBaseExpGain);
workerScript.scriptRef.onlineExpGained += expGainedOnSuccess;
workerScript.log(
"hack",