public void PostUpdateEverything()
        {
            DrawOverride.DrawFog();
            SGAmod.PostDraw.Clear();
            NullWatcher.DoAwarenessChecks(NullWatcher.SeeDistance, true, false);

            bool spacey = SGAPocketDim.WhereAmI != null && SGAPocketDim.WhereAmI == typeof(SpaceDim);

            if (spacey)
            {
                MineableAsteriod.SpawnAsteriods();
            }
            //Main.NewText("test1");

            List <HellionInsanity> madness = DimDungeonsProxy.madness;

            if (madness.Count > 0)
            {
                for (int i = 0; i < madness.Count; i += 1)
                {
                    //Never again will I let you control me, my grief
                    //Let this not be hallow words
                    HellionInsanity pleasemakeitstop = madness[i];
                    pleasemakeitstop.timeleft--;
                    pleasemakeitstop.Update();
                    if (pleasemakeitstop.timeleft < 1)
                    {
                        madness.RemoveAt(i);
                    }
                }
            }
        }
        public override void ResetEffects()
        {
            int count = 0;

            if (SGAPocketDim.WhereAmI == typeof(LimboDim))
            {
                count = (int)(player.CountItem(ModContent.ItemType <Entrophite>(), 1000) / 15f);
            }
            heartBeat += count;

            if (heartBeat > 10000 && !player.dead)
            {
                if (SGAPocketDim.WhereAmI == typeof(LimboDim))
                {
                    LimboDim.PlayWarning();
                }

                SoundEffectInstance sound = Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/Heartbeat").WithVolume(Math.Min(0.25f + (count / 250f), 1f)).WithPitchVariance(.05f), player.Center);
                if (sound != null)
                {
                    sound.Pitch = -0.75f + (float)Math.Min(Math.Atan(count / 25f), 1.7f);
                }

                NullWatcher.DoAwarenessChecks(600 + count * 5, false, true, player.Center);
                heartBeat       = 0;
                staticHeartBeat = 30;
                staticHeartRate = Math.Min(count / 500f, 0.04f);
            }
            if (!Main.dedServ && Main.LocalPlayer == player)
            {
                staticHeartBeat -= 1;
            }

            noLight     = false;
            noLightGrow = Math.Max(noLightGrow - 1, 0);
            if (!(player.HasBuff(BuffID.Darkness) || player.HasBuff(BuffID.Blackout)))
            {
                lightSize = Math.Min(lightSize + (noLightGrow > 0 ? 0 : lightGrowRate), 3000);// 2000+(int)(Math.Sin(Main.GlobalTime/2f)*1000);
            }
            lightGrowRate = 5;
        }