mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-20 13:15:48 +01:00
Update Singularity.ts
This commit is contained in:
parent
1f918011dc
commit
c2ffb09514
@ -1252,11 +1252,10 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
|
|||||||
_ctx.helper.checkSingularityAccess();
|
_ctx.helper.checkSingularityAccess();
|
||||||
const nextBN = _ctx.helper.number("nextBN", _nextBN);
|
const nextBN = _ctx.helper.number("nextBN", _nextBN);
|
||||||
const callbackScript = _ctx.helper.string("callbackScript", _callbackScript);
|
const callbackScript = _ctx.helper.string("callbackScript", _callbackScript);
|
||||||
|
|
||||||
const wd = GetServer(SpecialServers.WorldDaemon);
|
const wd = GetServer(SpecialServers.WorldDaemon);
|
||||||
if (!(wd instanceof Server))
|
if (!(wd instanceof Server)) throw new Error("WorldDaemon was not a normal server. This is a bug contact dev.");
|
||||||
throw new Error("WorldDaemon was not a normal server. This is a bug contact dev.");
|
|
||||||
|
|
||||||
_ctx.helper.checkSingularityAccess();
|
_ctx.helper.checkSingularityAccess();
|
||||||
|
|
||||||
const hackingRequirements = (): boolean => {
|
const hackingRequirements = (): boolean => {
|
||||||
@ -1274,7 +1273,7 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
|
|||||||
_ctx.log(() => "Requirements not met to destroy the world daemon");
|
_ctx.log(() => "Requirements not met to destroy the world daemon");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
wd.backdoorInstalled = true;
|
wd.backdoorInstalled = true;
|
||||||
calculateAchievements();
|
calculateAchievements();
|
||||||
enterBitNode(Router, false, player.bitNodeN, nextBN);
|
enterBitNode(Router, false, player.bitNodeN, nextBN);
|
||||||
@ -1285,3 +1284,4 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user