mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
added filter for possibleFactions to filter factions without tasks
This commit is contained in:
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: {
|
||||||
|
Loading…
Reference in New Issue
Block a user