Fixed numerous bugs with the recent Corporation UI rewrite. Rebalanced Corporation mechanic to give employees better and more interesting effects

This commit is contained in:
danielyxie
2019-03-15 02:37:06 -07:00
parent 8470f307ac
commit c3ecc189fd
19 changed files with 394 additions and 214 deletions
+3 -1
View File
@@ -1,3 +1,5 @@
import { Script } from "./Script";
import { calculateRamUsage } from "./RamCalculations";
import { isScriptFilename } from "./ScriptHelpersTS";
@@ -269,7 +271,7 @@ function saveAndCloseScriptEditor() {
}
//If the current script does NOT exist, create a new one
var script = new Script();
const script = new Script();
script.saveScript(getCurrentEditor().getCode(), Player);
s.scripts.push(script);
} else if (filename.endsWith(".txt")) {