Added several configurable game settings. Added donate button. Added Hacknet Node API functions for getting cost of upgrades

This commit is contained in:
danielyxie
2017-07-25 09:39:56 -05:00
parent be48875ff3
commit 2afb313a53
9 changed files with 269 additions and 172 deletions
+1 -1
View File
@@ -693,7 +693,7 @@ function NetscriptFunctions(workerScript) {
throw makeRuntimeRejectMsg(workerScript, "Could not find port: " + port + ". This is a bug contact the game developer");
}
port.push(data);
if (port.length > CONSTANTS.MaxPortCapacity) {
if (port.length > Settings.MaxPortCapacity) {
port.shift();
return true;
}