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 void Load() { DimDungeonsProxy.madness = new List <HellionInsanity>(); DimDungeonsProxy.Instance = this; DimDungeonsProxy.counter = 0; DimDungeonsProxy.DungeonSeeds = (int)(System.DateTime.Now.Millisecond * 1370.3943162338); Filters.Scene["SGAmod:LimboSky"] = new Filter(new ScreenShaderData("FilterMiniTower").UseColor(0.6f, 0.6f, 0.6f).UseOpacity(0.25f), EffectPriority.High); SkyManager.Instance["SGAmod:LimboSky"] = new LimboSky(); LimboDim.CreateTextures(); Filters.Scene["SGAmod:SpaceSky"] = new Filter(new ScreenShaderData("FilterMiniTower").UseColor(1f, 1f, 1f).UseOpacity(0.0f), EffectPriority.High); SkyManager.Instance["SGAmod:SpaceSky"] = new SpaceSky(); //On.Terraria.Player.Update += Player_Update; DrawOverride.InitTestThings(); }