Fixed havocmayhem getAugmentationPrereq() conflicts

This commit is contained in:
danielyxie
2018-12-30 16:36:44 -08:00
parent 669477626b
commit 6bbfae976e
3 changed files with 3 additions and 3 deletions

View File

@@ -557,7 +557,7 @@ getAugmentationsFromFaction
Returns an array containing the names (as strings) of all Augmentations that are available from the specified faction. Returns an array containing the names (as strings) of all Augmentations that are available from the specified faction.
getAugmentationPrereq getAugmentationPrereq
------------------- ---------------------
.. js:function:: getAugmentationPrereq(augName) .. js:function:: getAugmentationPrereq(augName)

View File

@@ -519,7 +519,7 @@ export let CONSTANTS: IMap<any> = {
** Slightly reduced the effect "Real Estate" has on the Production Multiplier for the Agriculture industry ** Slightly reduced the effect "Real Estate" has on the Production Multiplier for the Agriculture industry
* Added getOrders() Netscript function to the TIX API * 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 * 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) * 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 * Added "brace_style = preserve_inline" configuration to Script Editor Beautifier

View File

@@ -3626,7 +3626,7 @@ function NetscriptFunctions(workerScript) {
} }
var aug = Augmentations[name]; var aug = Augmentations[name];
return aug.prereqs; return aug.prereqs.slice();
}, },
getAugmentationCost : function(name) { getAugmentationCost : function(name) {
var ramCost = CONSTANTS.ScriptSingularityFn3RamCost; var ramCost = CONSTANTS.ScriptSingularityFn3RamCost;