added filter for possibleFactions to filter factions without tasks

This commit is contained in:
phyzical 2022-02-07 19:48:28 +08:00
parent 9ddb1c4379
commit 4af4634ada

@ -75,7 +75,10 @@ function possibleFactions(player: IPlayer, sleeve: Sleeve): string[] {
} }
} }
return factions; return factions.filter(faction => {
const facInfo = Factions[faction].getInfo();
return facInfo.offerHackingWork || facInfo.offerFieldWork || facInfo.offerSecurityWork
});
} }
const tasks: { const tasks: {