fix sleeve not being able to buy augs

This commit is contained in:
Olivier Gagnon 2022-07-26 08:25:18 -04:00
parent 18c3572423
commit 6b43ecafb1
3 changed files with 19 additions and 18 deletions

@ -96,4 +96,4 @@ stock.buy and stock.sell
corporation.bribe
-----------------
The ability to give stocks as bribe has been removed. The signature is now bribe(faction, money)
The ability to give shares as bribe has been removed. The signature is now bribe(faction, money)

@ -268,6 +268,7 @@ v2.0.0 - 2022-07-19 Work rework
They were already hidden from documentation but now they're gone.
* stock.buy and stock.sell were renamed to stock.buyStock and stock.sellStock because 'buy' and 'sell'
are very common tokens.
* corporation.bribe no longer allows to give shares as bribe.
Multipliers

@ -32,23 +32,23 @@ export function findSleevePurchasableAugs(sleeve: Sleeve, p: IPlayer): Augmentat
}
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",
"hacking",
"strength",
"defense",
"dexterity",
"agility",
"charisma",
"hacking_exp",
"strength_exp",
"defense_exp",
"dexterity_exp",
"agility_exp",
"charisma_exp",
"company_rep",
"faction_rep",
"crime_money",
"crime_success",
"work_money",
];
for (const mult of Object.keys(aug.mults)) {
if (validMults.includes(mult)) {