Updating documentation and Netscripy syntax highlighting for v0.40.1 community update. Bitrunners now has CranialSignalProcessors 3-5. CyberSec now has Cranial Signal Processors 1-2.

This commit is contained in:
Daniel Xie
2018-08-05 03:37:28 -04:00
parent d1b3fb9b41
commit faa5e807d5
8 changed files with 53 additions and 28 deletions
+1 -1
View File
@@ -187,7 +187,7 @@ function NetscriptFunctions(workerScript) {
*/
const getPurchaseServerRamCostGuard = (ram) => {
const guardedRam = Math.round(ram);
if (isNaN(guardedRam) || !powerOfTwo(guardedRam)) {
if (isNaN(guardedRam) || !isPowerOfTwo(guardedRam)) {
throw Error("failed due to invalid ram argument. Must be numeric and a power of 2");
}