Merge pull request #2925 from Ornedan/necro-script-fix

Necro script fix
This commit is contained in:
hydroflame
2022-04-11 21:36:07 -04:00
committed by GitHub
7 changed files with 102 additions and 59 deletions
-3
View File
@@ -637,9 +637,6 @@ export function NetscriptCorporation(
const office = getOffice(divisionName, cityName);
if (!Object.values(EmployeePositions).includes(job)) throw new Error(`'${job}' is not a valid job.`);
return netscriptDelay(1000, workerScript).then(function () {
if (workerScript.env.stopFlag) {
return Promise.reject(workerScript);
}
return Promise.resolve(office.setEmployeeToJob(job, amount));
});
},