public override void PreUpdate() { if (NPC.CountNPCS(mod.NPCType("Cirno")) < 1) { SGAWorld.CirnoBlizzard = Math.Max(SGAWorld.CirnoBlizzard - 3, 0); } if (ModLoader.GetMod("Idglibrary") != null) { Idglibrary.Idglib.nightmaremode = NightmareHardcore; } Hellion.HellionManager(); SharkvernHead.DoStormThings(null, null); SnapCooldown = Math.Max(SnapCooldown - 1, 0); /* * int width = 32; int height = 256; * SGAmod.hellionLaserTex = new Texture2D(Main.graphics.GraphicsDevice, width, height); * Color[] dataColors = new Color[width * height]; * * Color lerptocolor = Color.Red; * //if (projectile.ai[1] < 100) * // lerptocolor = Color.Green; * float scroll = (float)SGAWorld.modtimer; * * if (SGAWorld.updatelasers) { * * if (SGAmod.hellionLaserTex != null) * { * for (int y = 0; y < height; y++) * { * for (int x = 0; x < width; x += 1) * { * dataColors[(int)x + y * width] = Color.Lerp(Main.hslToRgb(((float)Math.Sin((x + scroll) * (width / (float)Math.PI)) * (1f)) % 1f, 0.75f, 0.5f), lerptocolor, 0.5f); * } * * } * } * SGAWorld.updatelasers = false; * * SGAmod.hellionLaserTex.SetData(dataColors); * * } */ if (Main.netMode != NetmodeID.Server) { if (Filters.Scene["SGAmod:ShockwaveBanshee"].IsActive() && !NPC.AnyNPCs(ModContent.NPCType <PrismBanshee>())) { Filters.Scene.Deactivate("SGAmod:ShockwaveBanshee", new object[0]); } } }
public override void PreUpdate() { if (NPC.CountNPCS(mod.NPCType("Cirno")) < 1) { SGAWorld.CirnoBlizzard = Math.Max(SGAWorld.CirnoBlizzard - 3, 0); } if (ModLoader.GetMod("Idglibrary") != null) { Idglibrary.Idglib.nightmaremode = NightmareHardcore; } Hellion.HellionManager(); /* * int width = 32; int height = 256; * SGAmod.hellionLaserTex = new Texture2D(Main.graphics.GraphicsDevice, width, height); * Color[] dataColors = new Color[width * height]; * * Color lerptocolor = Color.Red; * //if (projectile.ai[1] < 100) * // lerptocolor = Color.Green; * float scroll = (float)SGAWorld.modtimer; * * if (SGAWorld.updatelasers) { * * if (SGAmod.hellionLaserTex != null) * { * for (int y = 0; y < height; y++) * { * for (int x = 0; x < width; x += 1) * { * dataColors[(int)x + y * width] = Color.Lerp(Main.hslToRgb(((float)Math.Sin((x + scroll) * (width / (float)Math.PI)) * (1f)) % 1f, 0.75f, 0.5f), lerptocolor, 0.5f); * } * * } * } * SGAWorld.updatelasers = false; * * SGAmod.hellionLaserTex.SetData(dataColors); * * } */ /*if (NPC.CountNPCS(mod.NPCType("Cirno")) < 1) * { * Overlays.Scene["SGAmod:CirnoBlizzard"].Deactivate(); * Filters.Scene["SGAmod:CirnoBlizzard"].Deactivate(); * }*/ }