Merge pull request #2933 from phyzical/bugfix/1954

added filter for possibleFactions to filter factions without tasks
This commit is contained in:
hydroflame 2022-03-10 22:13:24 -05:00 committed by GitHub
commit 6a09cbd2ce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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: {