diff --git a/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow.png b/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow.png new file mode 100644 index 0000000000..3e2235cd1d Binary files /dev/null and b/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow.png differ diff --git a/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow.png b/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow.png new file mode 100644 index 0000000000..4530739af2 Binary files /dev/null and b/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow.png differ diff --git a/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow.png b/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow.png new file mode 100644 index 0000000000..2fcbcceb81 Binary files /dev/null and b/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow.png differ diff --git a/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow.png b/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow.png new file mode 100644 index 0000000000..a988d2bbdc Binary files /dev/null and b/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow.png differ diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index b0d5138783..02bea30cea 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -6760,12 +6760,13 @@ namespace CalamityMod.NPCs } // Light colors - Color groundColor = new Color(50, 10, 10, 0); - Color flightColor = revenge ? new Color(10, 10, 50, 0) : groundColor; + int alpha = 192; + Color groundColor = new Color(150, 0, 0, alpha); + Color flightColor = revenge ? new Color(0, 0, 150, alpha) : groundColor; Color segmentColor = Color.Lerp(groundColor, flightColor, phaseTransitionColorAmount); - Color telegraphColor_Red = new Color(255, 150, 150); - Color telegraphColor_Green = new Color(150, 255, 150); - Color telegraphColor_Cyan = new Color(50, 255, 255); + Color telegraphColor_Red = new Color(255, 125, 125, alpha); + Color telegraphColor_Green = new Color(125, 255, 125, alpha); + Color telegraphColor_Cyan = new Color(0, 255, 255, alpha); Color telegraphColor = telegraphColor_Red; // Telegraph for the laser breath and body lasers @@ -6830,13 +6831,24 @@ namespace CalamityMod.NPCs } } - int totalDraws = 3; - float alphaMultiplier = 1f - npc.alpha / 255f; - for (int i = 0; i < totalDraws; i++) + Texture2D glowTexture = Request("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow").Value; + switch (npc.type) { - spriteBatch.Draw(TextureAssets.Dest[npc.type - NPCID.TheDestroyer].Value, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, - Color.Lerp(segmentColor, telegraphColor, telegraphProgress) * alphaMultiplier, npc.rotation, halfSize, npc.scale, spriteEffects, 0f); + default: + case NPCID.TheDestroyer: + break; + + case NPCID.TheDestroyerBody: + glowTexture = Request("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow").Value; + break; + + case NPCID.TheDestroyerTail: + glowTexture = Request("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow").Value; + break; } + + float alphaMultiplier = 1f - npc.alpha / 255f; + spriteBatch.Draw(glowTexture, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, Color.Lerp(segmentColor, telegraphColor, telegraphProgress) * alphaMultiplier, npc.rotation, halfSize, npc.scale, spriteEffects, 0f); } } @@ -7065,9 +7077,11 @@ namespace CalamityMod.NPCs Color eyesColor = new Color(200, 200, 200, 0); if (masterMode && revenge) { - eyesColor = npc.type == ModContent.NPCType() ? new Color(150, 100, 255, 0) : new Color(255, 255, 0, 0); + int alpha = 192; + eyesColor = npc.type == ModContent.NPCType() ? new Color(150, 100, 255, alpha) : new Color(255, 255, 0, alpha); + Texture2D glowTexture = Request("CalamityMod/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow").Value; for (int i = 0; i < 3; i++) - spriteBatch.Draw(TextureAssets.BoneEyes.Value, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, eyesColor, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f); + spriteBatch.Draw(glowTexture, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, eyesColor, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f); } else spriteBatch.Draw(TextureAssets.BoneEyes.Value, npc.Center - screenPos + new Vector2(0, npc.gfxOffY), npc.frame, eyesColor, npc.rotation, npc.frame.Size() / 2, npc.scale, spriteEffects, 0f); diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs index 4e00abf810..c2ffacd734 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/DestroyerAI.cs @@ -684,7 +684,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses // Light colors Vector3 groundColor = new Vector3(0.3f, 0.1f, 0.05f); Vector3 flightColor = new Vector3(0.05f, 0.1f, 0.3f); - Vector3 segmentColor = Vector3.Lerp(groundColor, flightColor, phaseTransitionColorAmount) * 0.2f; + Vector3 segmentColor = Vector3.Lerp(groundColor, flightColor, phaseTransitionColorAmount); Vector3 telegraphColor = groundColor; // Telegraph for the laser breath and body lasers @@ -740,7 +740,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } } - Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor, telegraphProgress)); + Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor * 2f, telegraphProgress)); } } @@ -1325,7 +1325,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses { // Light colors Vector3 groundColor = new Vector3(0.3f, 0.1f, 0.05f); - Vector3 segmentColor = groundColor * 0.2f; + Vector3 segmentColor = groundColor; Vector3 telegraphColor = groundColor; // Telegraph for the laser breath and body lasers @@ -1343,7 +1343,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses } } - Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor, telegraphProgress)); + Lighting.AddLight(npc.Center, Vector3.Lerp(segmentColor, telegraphColor * 2f, telegraphProgress)); } } diff --git a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs index b580f873be..08dde4b380 100644 --- a/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs +++ b/NPCs/VanillaNPCAIOverrides/Bosses/SkeletronPrimeAI.cs @@ -1236,7 +1236,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses cannonArmTargetY *= cannonArmTargetDist; Vector2 rocketVelocity = new Vector2(cannonArmTargetX, cannonArmTargetY); - int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), cannonArmPosition + rocketVelocity.SafeNormalize(Vector2.UnitY) * 40f, rocketVelocity, type, damage, 0f, Main.myPlayer, npc.target, 1f); + int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), cannonArmPosition + rocketVelocity.SafeNormalize(Vector2.UnitY) * 40f, rocketVelocity, type, damage, 0f, Main.myPlayer, npc.target, 2f); Main.projectile[proj].timeLeft = 600; } } @@ -1285,7 +1285,7 @@ namespace CalamityMod.NPCs.VanillaNPCAIOverrides.Bosses for (int i = 0; i < numProj; i++) { Vector2 perturbedSpeed = cannonSpreadTargetDist.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1))); - int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * 40f, perturbedSpeed, type, damage, 0f, Main.myPlayer, npc.target, 1f); + int proj = Projectile.NewProjectile(npc.GetSource_FromAI(), npc.Center + perturbedSpeed.SafeNormalize(Vector2.UnitY) * 40f, perturbedSpeed, type, damage, 0f, Main.myPlayer, npc.target, 2f); Main.projectile[proj].timeLeft = 600; } } diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index f43e0d2e4e..cfac3f49b5 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -2179,15 +2179,16 @@ namespace CalamityMod.Projectiles else if (projectile.type == ProjectileID.RocketSkeleton && projectile.ai[1] == 1f) { + bool primeCannonProjectile = projectile.ai[1] == 2f; bool homeIn = false; float homingTime = masterMode ? 210f : 150f; float spreadOutCutoffTime = 555f; float homeInCutoffTime = spreadOutCutoffTime - homingTime; - float minAcceleration = 0.04f; - float maxAcceleration = 0.08f; - float homingVelocity = 24f; + float minAcceleration = 0.05f; + float maxAcceleration = 0.1f; + float homingVelocity = 27f; - if (projectile.timeLeft > homeInCutoffTime && projectile.timeLeft <= spreadOutCutoffTime) + if (projectile.timeLeft > homeInCutoffTime && projectile.timeLeft <= spreadOutCutoffTime && !primeCannonProjectile) homeIn = true; else if (projectile.velocity.Length() < (masterMode ? 20f : 15f)) projectile.velocity *= 1.01f;