From 6b43ecafb12cf635f66883f967124cafbf0bcae3 Mon Sep 17 00:00:00 2001 From: Olivier Gagnon Date: Tue, 26 Jul 2022 08:25:18 -0400 Subject: [PATCH] fix sleeve not being able to buy augs --- doc/source/v2.0.0_migration.rst | 2 +- src/Constants.ts | 1 + src/PersonObjects/Sleeve/SleeveHelpers.ts | 34 +++++++++++------------ 3 files changed, 19 insertions(+), 18 deletions(-) diff --git a/doc/source/v2.0.0_migration.rst b/doc/source/v2.0.0_migration.rst index 2ca0b20d4..17a71f470 100644 --- a/doc/source/v2.0.0_migration.rst +++ b/doc/source/v2.0.0_migration.rst @@ -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) \ No newline at end of file + The ability to give shares as bribe has been removed. The signature is now bribe(faction, money) \ No newline at end of file diff --git a/src/Constants.ts b/src/Constants.ts index 13f754ea3..0df9a7ead 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -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 diff --git a/src/PersonObjects/Sleeve/SleeveHelpers.ts b/src/PersonObjects/Sleeve/SleeveHelpers.ts index 0796027e3..ca5a211a2 100644 --- a/src/PersonObjects/Sleeve/SleeveHelpers.ts +++ b/src/PersonObjects/Sleeve/SleeveHelpers.ts @@ -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)) {