Exemple #1
0
        static private void SetBackgrounds(bool state)
        {
            Item   lifePotion       = Prefabs.GetIngestibleByName("Life Potion");
            Sprite potionBackground = lifePotion.m_overrideSigil;

            foreach (var ingestibleByID in Prefabs.IngestiblesByID)
            {
                if (ingestibleByID.Value != lifePotion)
                {
                    ingestibleByID.Value.m_overrideSigil = state ? potionBackground : null;
                }
            }
        }
Exemple #2
0
        private void TryDelayedInitialize()
        {
            if (Prefabs.IsInitialized || !IsGameInitialized)
            {
                return;
            }

            Tools.Log($"Finished waiting ({Tools.ElapsedMilliseconds}ms)");
            Tools.Log("");

            Tools.Log("Initializing prefabs...");
            Prefabs.Initialize();
            Tools.Log("Instantiating delayed mods...");
            InstantiateMods(_delayedModTypes);

            Tools.Log("Initializing Presets...");
            Presets.Initialize(_mods);

            Tools.Log($"Finished DelayedInit ({Tools.ElapsedMilliseconds}ms)");
            Tools.Log("");
            Tools.IsStopwatchActive = false;
        }