From 82c85b381cc0970c3fe3bc4c5a57437f3a2a9766 Mon Sep 17 00:00:00 2001 From: "tyasuh.taeragan@gmail.com" Date: Sat, 23 Oct 2021 11:42:18 -0400 Subject: [PATCH] Hacknet Core Bonus applies on new core bought. --- doc/source/netscript/sleeveapi/getInformation.rst | 2 +- src/Hacknet/HacknetServer.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/source/netscript/sleeveapi/getInformation.rst b/doc/source/netscript/sleeveapi/getInformation.rst index e98567039..ca39034fb 100644 --- a/doc/source/netscript/sleeveapi/getInformation.rst +++ b/doc/source/netscript/sleeveapi/getInformation.rst @@ -17,7 +17,7 @@ getInformation() Netscript Function maxHp: max hp of the sleeve, jobs: jobs available to the sleeve, jobTitle: job titles available to the sleeve, - tor: does this sleeve have access to the tor router, + mult: { agility: agility multiplier, agilityExp: agility exp multiplier, diff --git a/src/Hacknet/HacknetServer.ts b/src/Hacknet/HacknetServer.ts index 7ccc4fbec..a07bdbfa7 100644 --- a/src/Hacknet/HacknetServer.ts +++ b/src/Hacknet/HacknetServer.ts @@ -37,7 +37,7 @@ export class HacknetServer extends BaseServer implements IHacknetNode { // Number of cores. Improves hash production cores = 1; - + // Number of hashes that can be stored by this Hacknet Server hashCapacity = 0; @@ -95,6 +95,7 @@ export class HacknetServer extends BaseServer implements IHacknetNode { upgradeCore(levels: number, prodMult: number): void { this.cores = Math.min(HacknetServerConstants.MaxCores, Math.round(this.cores + levels)); this.updateHashRate(prodMult); + this.cpuCores=this.cores; } upgradeLevel(levels: number, prodMult: number): void {