mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-29 19:13:49 +01:00
Merge pull request #2933 from phyzical/bugfix/1954
added filter for possibleFactions to filter factions without tasks
This commit is contained in:
commit
6a09cbd2ce
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user