Hacking missions inside GameRoot

This commit is contained in:
Olivier Gagnon
2021-09-19 17:05:27 -04:00
parent 0a2dbe66e4
commit 7a2dd16092
9 changed files with 33 additions and 29 deletions
-12
View File
@@ -51,12 +51,6 @@ import React from "react";
import ReactDOM from "react-dom";
const Engine = {
// Display objects
// TODO-Refactor this into its own component
Display: {
missionContent: null,
},
indexedDb: undefined,
// Time variables (milliseconds unix epoch time)
@@ -258,7 +252,6 @@ const Engine = {
// Load game from save or create new game
if (loadGame(saveString)) {
initBitNodeMultipliers(Player);
Engine.setDisplayElements(); // Sets variables for important DOM elements
updateSourceFileFlags(Player);
initAugmentations(); // Also calls Player.reapplyAllAugmentations()
Player.reapplyAllSourceFiles();
@@ -418,11 +411,6 @@ const Engine = {
);
},
setDisplayElements: function () {
Engine.Display.missionContent = document.getElementById("mission-container");
Engine.Display.missionContent.style.display = "none";
},
start: function () {
// Get time difference
const _thisUpdate = new Date().getTime();