diff --git a/doc/source/netscript/netscriptsingularityfunctions.rst b/doc/source/netscript/netscriptsingularityfunctions.rst index d56d09130..6e44ab72e 100644 --- a/doc/source/netscript/netscriptsingularityfunctions.rst +++ b/doc/source/netscript/netscriptsingularityfunctions.rst @@ -557,7 +557,7 @@ getAugmentationsFromFaction Returns an array containing the names (as strings) of all Augmentations that are available from the specified faction. getAugmentationPrereq -------------------- +--------------------- .. js:function:: getAugmentationPrereq(augName) diff --git a/src/Constants.ts b/src/Constants.ts index 2f0e89dcc..80c50702a 100644 --- a/src/Constants.ts +++ b/src/Constants.ts @@ -519,7 +519,7 @@ export let CONSTANTS: IMap = { ** Slightly reduced the effect "Real Estate" has on the Production Multiplier for the Agriculture industry * Added getOrders() Netscript function to the TIX API - * + * Added getAugmentationPrereq() Singularity function (by havocmayhem) * Stock Market, Travel, and Corporation main menu links are now properly styled * Many pop-up/dialog boxes now support the 'Enter' and 'Esc' hotkeys. If you find a pop-up/dialog box that doesnt support this, let me know specifically which one ('Enter' for the default option, 'Esc' for cancelling and closing the pop-up box) * Added "brace_style = preserve_inline" configuration to Script Editor Beautifier diff --git a/src/NetscriptFunctions.js b/src/NetscriptFunctions.js index f059ec4a4..e65c1bac5 100644 --- a/src/NetscriptFunctions.js +++ b/src/NetscriptFunctions.js @@ -3626,7 +3626,7 @@ function NetscriptFunctions(workerScript) { } var aug = Augmentations[name]; - return aug.prereqs; + return aug.prereqs.slice(); }, getAugmentationCost : function(name) { var ramCost = CONSTANTS.ScriptSingularityFn3RamCost;