mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-18 23:38:35 +02:00
fix some bugs
This commit is contained in:
@@ -77,8 +77,12 @@ export class HacknetServer extends BaseServer implements IHacknetNode {
|
||||
// Process this Hacknet Server in the game loop. Returns the number of hashes generated
|
||||
process(numCycles = 1): number {
|
||||
const seconds = (numCycles * CONSTANTS.MilliPerCycle) / 1000;
|
||||
this.onlineTimeSeconds += seconds;
|
||||
|
||||
return this.hashRate * seconds;
|
||||
const hashes = this.hashRate * seconds;
|
||||
this.totalHashesGenerated += hashes;
|
||||
|
||||
return hashes;
|
||||
}
|
||||
|
||||
upgradeCache(levels: number): void {
|
||||
|
||||
Reference in New Issue
Block a user