Merge branch 'dev' of github.com:danielyxie/bitburner into dev

t push
This commit is contained in:
Olivier Gagnon 2021-10-23 14:36:13 -04:00
commit 148611dd4f
2 changed files with 3 additions and 2 deletions

@ -17,7 +17,7 @@ getInformation() Netscript Function
maxHp: max hp of the sleeve, maxHp: max hp of the sleeve,
jobs: jobs available to the sleeve, jobs: jobs available to the sleeve,
jobTitle: job titles available to the sleeve, jobTitle: job titles available to the sleeve,
tor: does this sleeve have access to the tor router,
mult: { mult: {
agility: agility multiplier, agility: agility multiplier,
agilityExp: agility exp multiplier, agilityExp: agility exp multiplier,

@ -95,6 +95,7 @@ export class HacknetServer extends BaseServer implements IHacknetNode {
upgradeCore(levels: number, prodMult: number): void { upgradeCore(levels: number, prodMult: number): void {
this.cores = Math.min(HacknetServerConstants.MaxCores, Math.round(this.cores + levels)); this.cores = Math.min(HacknetServerConstants.MaxCores, Math.round(this.cores + levels));
this.updateHashRate(prodMult); this.updateHashRate(prodMult);
this.cpuCores=this.cores;
} }
upgradeLevel(levels: number, prodMult: number): void { upgradeLevel(levels: number, prodMult: number): void {