Exemple #1
0
        // after loading of saved data
        protected override void InitHostPostLoading(IModSystemRegistry modSystemRegistry)
        {
            ModLog.Info("Original world was loaded by Version:" + modBuildWhenGameStarted.ToString());
            ModLog.Info("Loaded world was saved by Version:" + modBuildWhenLastSaved.ToString());

            npcGroupManager.SetBuildWhenSaved(modBuildWhenLastSaved);

            researchHacking.InitHackingLocations(); // Uses research restrictions and save data
            DuckUtils.MakePeaceBetweenFactions("MIKI", "CRASH");
            DuckUtils.MakePeaceBetweenFactions("MIKI", "GCORP");

            //V27 for SE 1.192
            DuckUtils.RemoveFaction("SPRT");
            DuckUtils.SetAllPlayerReputation("MIKI", 0);

            audioSystem.AudioRelay = networkComms;
            networkComms.StartWipeHostToolbar();
            modSystemRegistry.AddRapidUpdatableModSystem(turretManager);
            modSystemRegistry.AddUpatableModSystem(researchHacking);
            modSystemRegistry.AddUpatableModSystem(missionSystem);
            modSystemRegistry.AddUpatableModSystem(mikiScrapManager);
            modSystemRegistry.AddUpatableModSystem(npcGroupManager);
            modSystemRegistry.AddUpatableModSystem(baseManager);
            modSystemRegistry.AddUpatableModSystem(convoySpawner);
        }