mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-22 23:53:48 +01:00
Sleeves can no longer buy augs that can't help them.
This commit is contained in:
parent
5865f8a1ea
commit
d6ac7f44c2
@ -34,8 +34,33 @@ export function findSleevePurchasableAugs(sleeve: Sleeve, p: IPlayer): Augmentat
|
||||
return false;
|
||||
}
|
||||
|
||||
const validMults = [
|
||||
"hacking_mult",
|
||||
"strength_mult",
|
||||
"defense_mult",
|
||||
"dexterity_mult",
|
||||
"agility_mult",
|
||||
"charisma_mult",
|
||||
"hacking_exp_mult",
|
||||
"strength_exp_mult",
|
||||
"defense_exp_mult",
|
||||
"dexterity_exp_mult",
|
||||
"agility_exp_mult",
|
||||
"charisma_exp_mult",
|
||||
"company_rep_mult",
|
||||
"faction_rep_mult",
|
||||
"crime_money_mult",
|
||||
"crime_success_mult",
|
||||
"work_money_mult",
|
||||
];
|
||||
for (const mult of Object.keys(aug.mults)) {
|
||||
if (validMults.includes(mult)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// If player is in a gang, then we return all augs that the player
|
||||
// has enough reputation for (since that gang offers all augs)
|
||||
|
Loading…
Reference in New Issue
Block a user