From e6dddd34aa4262151df4d75f8962dd188f74fb8d Mon Sep 17 00:00:00 2001 From: Dominic Date: Sun, 10 Apr 2022 05:26:14 -0500 Subject: [PATCH] Bestiary things and various fixes --- NPCs/AcidRain/CragmawMire.cs | 2 +- NPCs/AcidRain/FlakBaby.cs | 6 +++--- NPCs/AcidRain/FlakCrab.cs | 6 +++--- NPCs/AcidRain/Skyfin.cs | 5 +++++ NPCs/Astral/Atlas.cs | 2 +- NPCs/Astral/Hadarian.cs | 5 ++++- NPCs/ExoMechs/Apollo/Apollo.cs | 28 ++++++++++++++++++++----- NPCs/ExoMechs/Ares/AresBody.cs | 15 ++++++++++++- NPCs/ExoMechs/Artemis/Artemis.cs | 26 +++++++++++++++++++---- NPCs/NormalNPCs/AngryDog.cs | 5 +++++ NPCs/Polterghast/PolterPhantom.cs | 3 +++ NPCs/Polterghast/Polterghast.cs | 3 +++ NPCs/SupremeCalamitas/BrimstoneHeart.cs | 3 +++ Scenes/AEWBackgroundScene.cs | 1 - Scenes/AstralScene.cs | 1 - Scenes/CalamitasCloneBackgroundScene.cs | 1 - Scenes/CryogenBackgroundScene.cs | 1 - Scenes/DoGBackgroundScene.cs | 1 - Scenes/ExoMechBackgroundScene.cs | 1 - Scenes/LeviathanBackgroundScene.cs | 1 - Scenes/PBGBackgroundScene.cs | 1 - Scenes/ProvBackgroundScene.cs | 1 - Scenes/SCalBackgroundScene.cs | 1 - Scenes/StormWeaverBackgroundScene.cs | 1 - Scenes/YharonBackgroundScene.cs | 1 - 25 files changed, 90 insertions(+), 31 deletions(-) diff --git a/NPCs/AcidRain/CragmawMire.cs b/NPCs/AcidRain/CragmawMire.cs index f2dfe94aba..505e50ee28 100644 --- a/NPCs/AcidRain/CragmawMire.cs +++ b/NPCs/AcidRain/CragmawMire.cs @@ -454,7 +454,7 @@ namespace CalamityMod.NPCs.AcidRain public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { Texture2D texture = InPhase2 ? ModContent.Request("CalamityMod/NPCs/AcidRain/CragmawMire2").Value : ModContent.Request("CalamityMod/NPCs/AcidRain/CragmawMire").Value; - Main.EntitySpriteDraw(texture, screenPos, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, NPC.frame.Size() * 0.5f, NPC.scale, 0, 0); + Main.EntitySpriteDraw(texture, NPC.Center - screenPos, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, NPC.frame.Size() * 0.5f, NPC.scale, 0, 0); return false; } diff --git a/NPCs/AcidRain/FlakBaby.cs b/NPCs/AcidRain/FlakBaby.cs index 0f35b0901d..47564459bd 100644 --- a/NPCs/AcidRain/FlakBaby.cs +++ b/NPCs/AcidRain/FlakBaby.cs @@ -152,9 +152,9 @@ namespace CalamityMod.NPCs.AcidRain } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrabGore1").Type, 0.5f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrabGore2").Type, 0.5f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrabGore3").Type, 0.5f); } } } diff --git a/NPCs/AcidRain/FlakCrab.cs b/NPCs/AcidRain/FlakCrab.cs index aaf6f7aa64..3d43b13212 100644 --- a/NPCs/AcidRain/FlakCrab.cs +++ b/NPCs/AcidRain/FlakCrab.cs @@ -213,9 +213,9 @@ namespace CalamityMod.NPCs.AcidRain } if (Main.netMode != NetmodeID.Server) { - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab2").Type, 1f); - Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrab3").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrabGore1").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrabGore2").Type, 1f); + Gore.NewGore(NPC.position, NPC.velocity, Mod.Find("FlakCrabGore3").Type, 1f); } } diff --git a/NPCs/AcidRain/Skyfin.cs b/NPCs/AcidRain/Skyfin.cs index e831740e11..32b3bb0738 100644 --- a/NPCs/AcidRain/Skyfin.cs +++ b/NPCs/AcidRain/Skyfin.cs @@ -22,6 +22,11 @@ namespace CalamityMod.NPCs.AcidRain { DisplayName.SetDefault("Skyfin"); Main.npcFrameCount[NPC.type] = 5; + NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) + { + Rotation = MathHelper.Pi + }; + NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; } public override void SetDefaults() diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index 5c85e7d70c..0804080a26 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -453,7 +453,7 @@ namespace CalamityMod.NPCs.Astral //hand Gore.NewGore(NPC.direction == 1 ? NPC.Right : NPC.Left, NPC.velocity * 0.5f, Mod.Find("AtlasGore2").Type); //rest - Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("Atlas/AtlasGore0").Type); + Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore0").Type); Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore1").Type); Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore3").Type); Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find("AtlasGore5").Type); diff --git a/NPCs/Astral/Hadarian.cs b/NPCs/Astral/Hadarian.cs index 0e826b8c09..0ec11bdba3 100644 --- a/NPCs/Astral/Hadarian.cs +++ b/NPCs/Astral/Hadarian.cs @@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.Astral } } - if (NPC.velocity.X == 0f && NPC.velocity.Y == 0f) + if ((NPC.velocity.X == 0f && NPC.velocity.Y == 0f) && !NPC.IsABestiaryIconDummy) { NPC.frame.Y = 0; NPC.frameCounter = 0.0; @@ -129,6 +129,9 @@ namespace CalamityMod.NPCs.Astral public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) { + if (NPC.IsABestiaryIconDummy) + return true; + if (NPC.ai[0] == 0f) { Vector2 position = NPC.Bottom - new Vector2(19f, 42f); diff --git a/NPCs/ExoMechs/Apollo/Apollo.cs b/NPCs/ExoMechs/Apollo/Apollo.cs index 64d2619c4d..e146bf0322 100644 --- a/NPCs/ExoMechs/Apollo/Apollo.cs +++ b/NPCs/ExoMechs/Apollo/Apollo.cs @@ -124,6 +124,15 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo DisplayName.SetDefault(NameToDisplay); NPCID.Sets.TrailingMode[NPC.type] = 3; NPCID.Sets.TrailCacheLength[NPC.type] = 15; + NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) + { + PortraitPositionXOverride = 50f, + PortraitPositionYOverride = 40f, + PortraitScale = 0.75f, + Scale = 0.45f, + Rotation = -MathHelper.PiOver4 + }; + NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; } public override void SetDefaults() @@ -1319,6 +1328,9 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo public override void FindFrame(int frameHeight) { + if (NPC.IsABestiaryIconDummy) + NPC.Opacity = 1f; + // Use telegraph frames before each attack bool phase2 = NPC.life / (float)NPC.lifeMax < 0.6f; NPC.frameCounter += 1D; @@ -1393,6 +1405,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo } } } + NPC.frame = new Rectangle(NPC.width * frameX, NPC.height * frameY, NPC.width, NPC.height); } public float FlameTrailWidthFunction(float completionRatio) => MathHelper.SmoothStep(21f, 8f, completionRatio) * ChargeComboFlash; @@ -1459,7 +1472,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo // This is created to allow easy duplication of them when drawing the charge. void drawInstance(Vector2 drawOffset, Color baseColor) { - if (CalamityConfig.Instance.Afterimages) + if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy) { for (int i = 1; i < numAfterimages; i += 2) { @@ -1481,6 +1494,9 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo // Draw ribbons near the main thruster for (int direction = -1; direction <= 1; direction += 2) { + if (NPC.IsABestiaryIconDummy) + break; + Vector2 ribbonOffset = -Vector2.UnitY.RotatedBy(NPC.rotation) * 14f; ribbonOffset += Vector2.UnitX.RotatedBy(NPC.rotation) * direction * 26f; @@ -1511,7 +1527,8 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo Color baseInstanceColor = Color.Lerp(drawColor, Color.White, ChargeComboFlash); baseInstanceColor.A = (byte)(int)(255f - ChargeComboFlash * 255f); - spriteBatch.EnterShaderRegion(); + if (!NPC.IsABestiaryIconDummy) + spriteBatch.EnterShaderRegion(); drawInstance(Vector2.Zero, baseInstanceColor); if (instanceCount > 1) @@ -1526,7 +1543,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo } texture = ModContent.Request("CalamityMod/NPCs/ExoMechs/Apollo/ApolloGlow").Value; - if (CalamityConfig.Instance.Afterimages) + if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy) { for (int i = 1; i < numAfterimages; i += 2) { @@ -1543,10 +1560,11 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo spriteBatch.Draw(texture, center, frame, Color.White * NPC.Opacity, NPC.rotation, origin, NPC.scale, SpriteEffects.None, 0f); - spriteBatch.ExitShaderRegion(); + if (!NPC.IsABestiaryIconDummy) + spriteBatch.ExitShaderRegion(); // Draw a flame trail on the thrusters if needed. This happens during charges. - if (ChargeComboFlash > 0f) + if (ChargeComboFlash > 0f && !NPC.IsABestiaryIconDummy) { for (int direction = -1; direction <= 1; direction++) { diff --git a/NPCs/ExoMechs/Ares/AresBody.cs b/NPCs/ExoMechs/Ares/AresBody.cs index bf9ee9cf4b..17092c4127 100644 --- a/NPCs/ExoMechs/Ares/AresBody.cs +++ b/NPCs/ExoMechs/Ares/AresBody.cs @@ -138,6 +138,12 @@ namespace CalamityMod.NPCs.ExoMechs.Ares DisplayName.SetDefault("XF-09 Ares"); NPCID.Sets.TrailingMode[NPC.type] = 3; NPCID.Sets.TrailCacheLength[NPC.type] = NPC.oldPos.Length; + NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) + { + PortraitScale = 0.6f, + Scale = 0.4f + }; + NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; } public override void SetDefaults() @@ -857,9 +863,12 @@ namespace CalamityMod.NPCs.ExoMechs.Ares public override void FindFrame(int frameHeight) { + if (NPC.IsABestiaryIconDummy) + NPC.Opacity = 1f; + // Use telegraph frames when using deathrays NPC.frameCounter += 1D; - if (AIState == (float)Phase.Normal || NPC.Calamity().newAI[3] == 0f) + if ((AIState == (float)Phase.Normal || NPC.Calamity().newAI[3] == 0f) && !NPC.IsABestiaryIconDummy) { if (NPC.frameCounter >= 6D) { @@ -903,6 +912,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares frameX = frameY = 4; } } + NPC.frame = new Rectangle(NPC.width * frameX, NPC.height * frameY, NPC.width, NPC.height); } public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor) @@ -1063,6 +1073,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares public void DrawArm(SpriteBatch spriteBatch, Vector2 handPosition, Color glowmaskColor, int direction, bool backArm) { + if (NPC.IsABestiaryIconDummy) + return; + if (LightningDrawer is null) LightningDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, PrimitiveTrail.RigidPointRetreivalFunction); if (LightningBackgroundDrawer is null) diff --git a/NPCs/ExoMechs/Artemis/Artemis.cs b/NPCs/ExoMechs/Artemis/Artemis.cs index 43c6a57cdb..8901b51ea0 100644 --- a/NPCs/ExoMechs/Artemis/Artemis.cs +++ b/NPCs/ExoMechs/Artemis/Artemis.cs @@ -136,6 +136,15 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis DisplayName.SetDefault(NameToDisplay); NPCID.Sets.TrailingMode[NPC.type] = 3; NPCID.Sets.TrailCacheLength[NPC.type] = 15; + NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) + { + PortraitPositionXOverride = -50f, + PortraitPositionYOverride = -40f, + PortraitScale = 0.75f, + Scale = 0.45f, + Rotation = MathHelper.Pi - MathHelper.PiOver4 + }; + NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; } public override void SetDefaults() @@ -1126,6 +1135,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis public override void FindFrame(int frameHeight) { + if (NPC.IsABestiaryIconDummy) + NPC.Opacity = 1f; + // Use telegraph frames before each attack bool phase2 = NPC.life / (float)NPC.lifeMax < 0.6f; NPC.frameCounter += 1D; @@ -1200,6 +1212,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis } } } + NPC.frame = new Rectangle(NPC.width * frameX, NPC.height * frameY, NPC.width, NPC.height); } public float FlameTrailWidthFunction(float completionRatio) => MathHelper.SmoothStep(21f, 8f, completionRatio) * ChargeFlash; @@ -1266,7 +1279,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis // This is created to allow easy duplication of them when drawing the charge. void drawInstance(Vector2 drawOffset, Color baseColor) { - if (CalamityConfig.Instance.Afterimages) + if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy) { for (int i = 1; i < numAfterimages; i += 2) { @@ -1288,6 +1301,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis // Draw ribbons near the main thruster for (int direction = -1; direction <= 1; direction += 2) { + if (NPC.IsABestiaryIconDummy) + break; + Vector2 ribbonOffset = -Vector2.UnitY.RotatedBy(NPC.rotation) * 14f; ribbonOffset += Vector2.UnitX.RotatedBy(NPC.rotation) * direction * 26f; @@ -1318,7 +1334,8 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis Color baseInstanceColor = Color.Lerp(drawColor, Color.White, ChargeFlash); baseInstanceColor.A = (byte)(int)(255f - ChargeFlash * 255f); - spriteBatch.EnterShaderRegion(); + if (!NPC.IsABestiaryIconDummy) + spriteBatch.EnterShaderRegion(); drawInstance(Vector2.Zero, baseInstanceColor); if (instanceCount > 1) @@ -1333,7 +1350,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis } texture = ModContent.Request("CalamityMod/NPCs/ExoMechs/Artemis/ArtemisGlow").Value; - if (CalamityConfig.Instance.Afterimages) + if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy) { for (int i = 1; i < numAfterimages; i += 2) { @@ -1350,7 +1367,8 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis spriteBatch.Draw(texture, center, frame, Color.White * NPC.Opacity, NPC.rotation, origin, NPC.scale, SpriteEffects.None, 0f); - spriteBatch.ExitShaderRegion(); + if (!NPC.IsABestiaryIconDummy) + spriteBatch.ExitShaderRegion(); // Draw a flame trail on the thrusters if needed. This happens during charges. if (ChargeFlash > 0f) diff --git a/NPCs/NormalNPCs/AngryDog.cs b/NPCs/NormalNPCs/AngryDog.cs index d0a918e886..b4e28b4673 100644 --- a/NPCs/NormalNPCs/AngryDog.cs +++ b/NPCs/NormalNPCs/AngryDog.cs @@ -16,6 +16,11 @@ namespace CalamityMod.NPCs.NormalNPCs { DisplayName.SetDefault("Angry Dog"); Main.npcFrameCount[NPC.type] = 9; + NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) + { + Velocity = 1.2f + }; + NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; } public override void SetDefaults() diff --git a/NPCs/Polterghast/PolterPhantom.cs b/NPCs/Polterghast/PolterPhantom.cs index e4bbbe74d0..02d0ed4e78 100644 --- a/NPCs/Polterghast/PolterPhantom.cs +++ b/NPCs/Polterghast/PolterPhantom.cs @@ -479,6 +479,9 @@ namespace CalamityMod.NPCs.Polterghast public override void FindFrame(int frameHeight) { + if (NPC.IsABestiaryIconDummy) + NPC.Opacity = 1f; + NPC.frameCounter += 1.0; if (NPC.frameCounter > 6.0) { diff --git a/NPCs/Polterghast/Polterghast.cs b/NPCs/Polterghast/Polterghast.cs index 9d3d00ecda..27ac5ee3cd 100644 --- a/NPCs/Polterghast/Polterghast.cs +++ b/NPCs/Polterghast/Polterghast.cs @@ -1106,6 +1106,9 @@ namespace CalamityMod.NPCs.Polterghast public override void FindFrame(int frameHeight) { + if (NPC.IsABestiaryIconDummy) + NPC.Opacity = 1f; + // Percent life remaining float lifeRatio = NPC.life / (float)NPC.lifeMax; diff --git a/NPCs/SupremeCalamitas/BrimstoneHeart.cs b/NPCs/SupremeCalamitas/BrimstoneHeart.cs index 1891bc3bfe..6c02e31602 100644 --- a/NPCs/SupremeCalamitas/BrimstoneHeart.cs +++ b/NPCs/SupremeCalamitas/BrimstoneHeart.cs @@ -99,6 +99,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas public override void FindFrame(int frameHeight) { + if (NPC.IsABestiaryIconDummy) + NPC.Opacity = 1f; + int frame = (int)Math.Round((float)Math.Pow(Math.Sin(Main.GlobalTimeWrappedHourly * 2.6f + NPC.whoAmI * 1.3f), 6D) * Main.npcFrameCount[NPC.type]); if (frame >= Main.npcFrameCount[NPC.type]) frame = Main.npcFrameCount[NPC.type] - 1; diff --git a/Scenes/AEWBackgroundScene.cs b/Scenes/AEWBackgroundScene.cs index 55afc22ed8..8eab961383 100644 --- a/Scenes/AEWBackgroundScene.cs +++ b/Scenes/AEWBackgroundScene.cs @@ -6,7 +6,6 @@ namespace CalamityMod.Systems { public class AEWBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); diff --git a/Scenes/AstralScene.cs b/Scenes/AstralScene.cs index ad35b590c8..55dc14cf61 100644 --- a/Scenes/AstralScene.cs +++ b/Scenes/AstralScene.cs @@ -5,7 +5,6 @@ namespace CalamityMod.Systems { public class AstralScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh; public override bool IsSceneEffectActive(Player player) => player.Calamity().ZoneAstral; diff --git a/Scenes/CalamitasCloneBackgroundScene.cs b/Scenes/CalamitasCloneBackgroundScene.cs index 5db93f3a15..f2e40832e2 100644 --- a/Scenes/CalamitasCloneBackgroundScene.cs +++ b/Scenes/CalamitasCloneBackgroundScene.cs @@ -6,7 +6,6 @@ namespace CalamityMod.Systems { public class CalamitasCloneBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); diff --git a/Scenes/CryogenBackgroundScene.cs b/Scenes/CryogenBackgroundScene.cs index b63d5d1c89..38320eaf0e 100644 --- a/Scenes/CryogenBackgroundScene.cs +++ b/Scenes/CryogenBackgroundScene.cs @@ -7,7 +7,6 @@ namespace CalamityMod.Systems { public class CryogenBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium; public override bool IsSceneEffectActive(Player player) diff --git a/Scenes/DoGBackgroundScene.cs b/Scenes/DoGBackgroundScene.cs index 1fcd523d12..e9a28adc07 100644 --- a/Scenes/DoGBackgroundScene.cs +++ b/Scenes/DoGBackgroundScene.cs @@ -7,7 +7,6 @@ namespace CalamityMod.Systems { public class DoGBackgroundScene : ModSceneEffect { - public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("DevourerOfGodsP2") ?? MusicID.LunarBoss; public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); diff --git a/Scenes/ExoMechBackgroundScene.cs b/Scenes/ExoMechBackgroundScene.cs index 913fd5d43e..1b59b29e61 100644 --- a/Scenes/ExoMechBackgroundScene.cs +++ b/Scenes/ExoMechBackgroundScene.cs @@ -7,7 +7,6 @@ namespace CalamityMod.Systems { public class ExoMechBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; public override bool IsSceneEffectActive(Player player) => ExoMechsSky.CanSkyBeActive; diff --git a/Scenes/LeviathanBackgroundScene.cs b/Scenes/LeviathanBackgroundScene.cs index 0a0a5ba3d9..f0124947a1 100644 --- a/Scenes/LeviathanBackgroundScene.cs +++ b/Scenes/LeviathanBackgroundScene.cs @@ -6,7 +6,6 @@ namespace CalamityMod.Systems { public class LeviathanBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); diff --git a/Scenes/PBGBackgroundScene.cs b/Scenes/PBGBackgroundScene.cs index 101d3425b4..d698391d76 100644 --- a/Scenes/PBGBackgroundScene.cs +++ b/Scenes/PBGBackgroundScene.cs @@ -6,7 +6,6 @@ namespace CalamityMod.Systems { public class PBGBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); diff --git a/Scenes/ProvBackgroundScene.cs b/Scenes/ProvBackgroundScene.cs index e8f23f7ec8..5a47b1a972 100644 --- a/Scenes/ProvBackgroundScene.cs +++ b/Scenes/ProvBackgroundScene.cs @@ -6,7 +6,6 @@ namespace CalamityMod.Systems { public class ProvBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); diff --git a/Scenes/SCalBackgroundScene.cs b/Scenes/SCalBackgroundScene.cs index 0353d1b144..5539d6204e 100644 --- a/Scenes/SCalBackgroundScene.cs +++ b/Scenes/SCalBackgroundScene.cs @@ -7,7 +7,6 @@ namespace CalamityMod.Systems { public class SCalBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()) || SCalSky.OverridingIntensity > 0f; diff --git a/Scenes/StormWeaverBackgroundScene.cs b/Scenes/StormWeaverBackgroundScene.cs index 9ad46bec5b..bf5380242e 100644 --- a/Scenes/StormWeaverBackgroundScene.cs +++ b/Scenes/StormWeaverBackgroundScene.cs @@ -7,7 +7,6 @@ namespace CalamityMod.Systems { public class StormWeaverBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType()); diff --git a/Scenes/YharonBackgroundScene.cs b/Scenes/YharonBackgroundScene.cs index f9b9942c0e..9670ffbd0a 100644 --- a/Scenes/YharonBackgroundScene.cs +++ b/Scenes/YharonBackgroundScene.cs @@ -6,7 +6,6 @@ namespace CalamityMod.Systems { public class YharonBackgroundScene : ModSceneEffect { - public override int Music => Main.curMusic; public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh; public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType());