mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-23 09:42:53 +02:00
SINGULARITY: Allow being hospitalized while being busy (#1426)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user