mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2026-04-29 04:17:05 +02:00
Refactored stock buying/selling code into its own file. Refactored WorkerScript & NetscriptEnvironment into their own Typescript classes. Refactored a ton of code to remove circular dependencies
This commit is contained in:
+4
-8
@@ -49,11 +49,10 @@ import { LocationRoot } from "./Locations/ui/Root";
|
||||
import { checkForMessagesToSend, initMessages } from "./Message/MessageHelpers";
|
||||
import { inMission, currMission } from "./Missions";
|
||||
import {
|
||||
initSingularitySFFlags,
|
||||
hasSingularitySF,
|
||||
hasCorporationSF
|
||||
} from "./NetscriptFunctions";
|
||||
import { updateOnlineScriptTimes, runScriptsLoop } from "./NetscriptWorker";
|
||||
loadAllRunningScripts,
|
||||
runScriptsLoop,
|
||||
updateOnlineScriptTimes,
|
||||
} from "./NetscriptWorker";
|
||||
import { Player } from "./Player";
|
||||
import { prestigeAugmentation, prestigeSourceFile } from "./Prestige";
|
||||
import { Programs } from "./Programs/Programs";
|
||||
@@ -66,7 +65,6 @@ import { redPillFlag, hackWorldDaemon } from "./RedPill";
|
||||
import { saveObject, loadGame } from "./SaveObject";
|
||||
import {
|
||||
getCurrentEditor,
|
||||
loadAllRunningScripts,
|
||||
scriptEditorInit,
|
||||
updateScriptEditorContent
|
||||
} from "./Script/ScriptHelpers";
|
||||
@@ -1087,7 +1085,6 @@ const Engine = {
|
||||
initSymbolToStockMap();
|
||||
}
|
||||
initLiterature();
|
||||
initSingularitySFFlags();
|
||||
updateSourceFileFlags(Player);
|
||||
|
||||
// Calculate the number of cycles have elapsed while offline
|
||||
@@ -1213,7 +1210,6 @@ const Engine = {
|
||||
initAugmentations();
|
||||
initMessages();
|
||||
initLiterature();
|
||||
initSingularitySFFlags();
|
||||
|
||||
// Open main menu accordions for new game
|
||||
const hackingHdr = document.getElementById("hacking-menu-header");
|
||||
|
||||
Reference in New Issue
Block a user