From cfb0967634ddf5a26e80f18eaac18b4a4eaad168 Mon Sep 17 00:00:00 2001 From: "T.J. Eckman" Date: Wed, 25 May 2022 18:55:34 -0400 Subject: [PATCH] Unassigned Employees Boost Speed up assigning of employees currently without a job. --- src/NetscriptFunctions/Corporation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NetscriptFunctions/Corporation.ts b/src/NetscriptFunctions/Corporation.ts index 03ec45ed8..9ed771625 100644 --- a/src/NetscriptFunctions/Corporation.ts +++ b/src/NetscriptFunctions/Corporation.ts @@ -725,7 +725,7 @@ export function NetscriptCorporation(player: IPlayer, workerScript: WorkerScript const employeeName = ctx.helper.string("employeeName", _employeeName); const job = ctx.helper.string("job", _job); const employee = getEmployee(divisionName, cityName, employeeName); - return netscriptDelay(1000, workerScript).then(function () { + return netscriptDelay(["Training", "Unassigned"].includes(employee.pos) ? 0 : 1000, workerScript).then(function () { return Promise.resolve(AssignJob(employee, job)); }); },