Only change to terminal when focused

This commit is contained in:
theit8514 2021-12-15 20:44:08 -05:00
parent c50c92f9b5
commit cd4c98d942

@ -725,7 +725,9 @@ export function NetscriptSingularity(
helper.updateDynamicRam("stopAction", getRamCost("stopAction"));
helper.checkSingularityAccess("stopAction", 1);
if (player.isWorking) {
if (player.focus) {
Router.toTerminal();
}
const txt = player.singularityStopWork();
workerScript.log("stopAction", () => txt);
return true;