UI: Automatically show Bitverse UI if BN is finished (#1358)

This commit is contained in:
catloversg
2024-06-09 03:54:44 +07:00
committed by GitHub
parent a354867fc4
commit a0fc9cc713
5 changed files with 83 additions and 57 deletions
+3 -1
View File
@@ -1121,7 +1121,9 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
if (cbScript === null) throw helpers.errorMessage(ctx, `Could not resolve file path: ${_cbScript}`);
const wd = GetServer(SpecialServers.WorldDaemon);
if (!(wd instanceof Server)) throw new Error("WorldDaemon was not a normal server. This is a bug contact dev.");
if (!(wd instanceof Server)) {
throw new Error("WorldDaemon is not a normal server. This is a bug. Please contact developers.");
}
const hackingRequirements = () => {
if (Player.skills.hacking < wd.requiredHackingSkill) return false;
if (!wd.hasAdminRights) return false;