mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 17:53:55 +01:00
Re-sleeves can no longer have the Neuroflux Governor aug. This is to prevent bugs
This commit is contained in:
parent
580a7fac24
commit
d955280f90
@ -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]);
|
||||||
|
Loading…
Reference in New Issue
Block a user