Merge pull request #1 from jeek/corpturboassign

Unassigned Employees Boost
This commit is contained in:
T.J. Eckman 2022-05-25 18:56:06 -04:00 committed by GitHub
commit e14a61e8ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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));
});
},