mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-18 20:25:45 +01:00
Hacknet Core Bonus applies on new core bought.
This commit is contained in:
parent
9493768c0b
commit
82c85b381c
@ -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,
|
||||||
|
@ -37,7 +37,7 @@ export class HacknetServer extends BaseServer implements IHacknetNode {
|
|||||||
|
|
||||||
// Number of cores. Improves hash production
|
// Number of cores. Improves hash production
|
||||||
cores = 1;
|
cores = 1;
|
||||||
|
|
||||||
// Number of hashes that can be stored by this Hacknet Server
|
// Number of hashes that can be stored by this Hacknet Server
|
||||||
hashCapacity = 0;
|
hashCapacity = 0;
|
||||||
|
|
||||||
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user