SINGULARITY: Allow being hospitalized while being busy (#1426)

This commit is contained in:
catloversg
2024-06-25 10:36:03 +07:00
committed by GitHub
parent 48bebeea2b
commit c0036b03d4
2 changed files with 6 additions and 9 deletions
+1 -5
View File
@@ -611,11 +611,7 @@ export function NetscriptSingularity(): InternalAPI<ISingularity> {
},
hospitalize: (ctx) => () => {
helpers.checkSingularityAccess(ctx);
if (Player.currentWork || Router.page() === Page.Infiltration || Router.page() === Page.BitVerse) {
helpers.log(ctx, () => "Cannot go to the hospital because the player is busy.");
return;
}
Player.hospitalize();
Player.hospitalize(true);
},
isBusy: (ctx) => () => {
helpers.checkSingularityAccess(ctx);