diff --git a/src/PersonObjects/Sleeve/Sleeve.ts b/src/PersonObjects/Sleeve/Sleeve.ts index ba04bb4a9..cbfbdcd81 100644 --- a/src/PersonObjects/Sleeve/Sleeve.ts +++ b/src/PersonObjects/Sleeve/Sleeve.ts @@ -292,6 +292,12 @@ export class Sleeve extends Person implements SleevePerson { /** TODO 2.4: Make this take in type correct data */ workForFaction(_factionName: string, _workType: string): boolean { + const workTypeConversion: Record = { + "Hacking Contracts": "hacking", + "Field Work": "field", + "Security Work": "security", + }; + if (workTypeConversion[_workType]) _workType = workTypeConversion[_workType]; const factionName = getEnumHelper("FactionName").fuzzyGetMember(_factionName); if (!factionName) return false; const faction = Factions[factionName];