diff --git a/src/NetscriptFunctions/Singularity.ts b/src/NetscriptFunctions/Singularity.ts index 7f0fa8b77..5bd57c5ec 100644 --- a/src/NetscriptFunctions/Singularity.ts +++ b/src/NetscriptFunctions/Singularity.ts @@ -1206,6 +1206,10 @@ export function NetscriptSingularity(player: IPlayer, workerScript: WorkerScript _ctx.log(() => txt); } + if (player.currentWork !== null) { + player.finishNEWWork(true); + } + // Set Location to slums player.gotoLocation(LocationName.Slums); diff --git a/src/ui/WorkInProgressRoot.tsx b/src/ui/WorkInProgressRoot.tsx index 811ce7b97..cc8f0d1c7 100644 --- a/src/ui/WorkInProgressRoot.tsx +++ b/src/ui/WorkInProgressRoot.tsx @@ -149,7 +149,7 @@ export function WorkInProgressRoot(): React.ReactElement { if (player.currentWork !== null) { if (isCrimeWork(player.currentWork)) { const crime = player.currentWork.getCrime(); - const completion = Math.round(((player.currentWork.cyclesWorked * CONSTANTS._idleSpeed) / crime.time) * 100); + const completion = ((player.currentWork.cyclesWorked * CONSTANTS._idleSpeed) / crime.time) * 100; workInfo = { buttons: {