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 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. 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' * stock.buy and stock.sell were renamed to stock.buyStock and stock.sellStock because 'buy' and 'sell'
are very common tokens. are very common tokens.
* corporation.bribe no longer allows to give shares as bribe.
Multipliers Multipliers

@ -32,23 +32,23 @@ export function findSleevePurchasableAugs(sleeve: Sleeve, p: IPlayer): Augmentat
} }
const validMults = [ const validMults = [
"hacking_mult", "hacking",
"strength_mult", "strength",
"defense_mult", "defense",
"dexterity_mult", "dexterity",
"agility_mult", "agility",
"charisma_mult", "charisma",
"hacking_exp_mult", "hacking_exp",
"strength_exp_mult", "strength_exp",
"defense_exp_mult", "defense_exp",
"dexterity_exp_mult", "dexterity_exp",
"agility_exp_mult", "agility_exp",
"charisma_exp_mult", "charisma_exp",
"company_rep_mult", "company_rep",
"faction_rep_mult", "faction_rep",
"crime_money_mult", "crime_money",
"crime_success_mult", "crime_success",
"work_money_mult", "work_money",
]; ];
for (const mult of Object.keys(aug.mults)) { for (const mult of Object.keys(aug.mults)) {
if (validMults.includes(mult)) { if (validMults.includes(mult)) {