Re-sleeves can no longer have the Neuroflux Governor aug. This is to prevent bugs

This commit is contained in:
danielyxie 2019-04-30 02:27:13 -07:00
parent 580a7fac24
commit d955280f90
2 changed files with 8 additions and 2 deletions

@ -284,6 +284,9 @@ export let CONSTANTS: IMap<any> = {
** Added getStockAskPrice(), getStockBidPrice() Netscript functions to the TIX API ** Added getStockAskPrice(), getStockBidPrice() Netscript functions to the TIX API
** Added getStockPurchaseCost(), getStockSaleGain() Netscript functions to the TIX API ** Added getStockPurchaseCost(), getStockSaleGain() Netscript functions to the TIX API
* Re-sleeves can no longer have the NeuroFlux Governor augmentation
** This is just a temporary patch until the mechanic gets re-worked
* Bug Fix: Fixed sleeve.getInformation() throwing error in certain scenarios * Bug Fix: Fixed sleeve.getInformation() throwing error in certain scenarios
* Bug Fix: Coding contracts should no longer generate on the w0r1d_d43m0n server * Bug Fix: Coding contracts should no longer generate on the w0r1d_d43m0n server
* Bug Fix: Duplicate Sleeves now properly have access to all Augmentations if you have a gang * Bug Fix: Duplicate Sleeves now properly have access to all Augmentations if you have a gang

@ -101,9 +101,12 @@ export function generateResleeves(): Resleeve[] {
// Get a random aug // Get a random aug
const randIndex: number = getRandomInt(0, augKeys.length - 1) const randIndex: number = getRandomInt(0, augKeys.length - 1)
const randKey: string = augKeys[randIndex]; const randKey: string = augKeys[randIndex];
if (randKey === AugmentationNames.TheRedPill) {
continue; // A sleeve can't have The Red Pill // Forbidden augmentations
if (randKey === AugmentationNames.TheRedPill || randKey === AugmentationNames.NeuroFluxGovernor) {
continue;
} }
const randAug: Augmentation | null = Augmentations[randKey]; const randAug: Augmentation | null = Augmentations[randKey];
r.augmentations.push({name: randAug!.name, level: 1}); r.augmentations.push({name: randAug!.name, level: 1});
r.applyAugmentation(Augmentations[randKey]); r.applyAugmentation(Augmentations[randKey]);