autoAssignJob streamlining

This commit is contained in:
omuretsu
2023-01-29 08:14:12 -05:00
parent d7439aae52
commit 867236e153
4 changed files with 13 additions and 31 deletions
+1 -2
View File
@@ -29,7 +29,6 @@ import {
SellProduct,
SetSmartSupply,
BuyMaterial,
AutoAssignJob,
UpgradeOfficeSize,
PurchaseWarehouse,
UpgradeWarehouse,
@@ -624,7 +623,7 @@ export function NetscriptCorporation(): InternalAPI<NSCorporation> {
ctx,
`Unable to bring '${job} employees to ${amount}. Requires ${totalNewEmployees} unassigned employees`,
);
return AutoAssignJob(office, job, amount);
return office.autoAssignJob(job, amount);
},
hireEmployee: (ctx) => (_divisionName, _cityName, _position?) => {
checkAccess(ctx, 8);