diff --git a/CalamityConfig.cs b/CalamityConfig.cs index 11af760d28..6501b1a176 100644 --- a/CalamityConfig.cs +++ b/CalamityConfig.cs @@ -50,10 +50,6 @@ namespace CalamityMod [DefaultValue(false)] public bool BoCSpriteChange { get; set; } - [BackgroundColor(192, 54, 64, 192)] - [DefaultValue(true)] - public bool EnableVanillaTextureEdits { get; set; } - [BackgroundColor(192, 54, 64, 192)] [DefaultValue(true)] public bool SunkenSeaBackgroundDistortion { get; set; } diff --git a/ExtraTextures/ExtraTextureRefs.cs b/ExtraTextures/ExtraTextureRefs.cs index de46254b15..7e19975be1 100644 --- a/ExtraTextures/ExtraTextureRefs.cs +++ b/ExtraTextures/ExtraTextureRefs.cs @@ -11,11 +11,6 @@ namespace CalamityMod.ExtraTextures [Autoload(Side = ModSide.Client)] public class ExtraTextureRefs : ModSystem { - // Destroyer glowmasks - public static Asset DestroyerHeadGlowmask; - public static Asset DestroyerBodyGlowmask; - public static Asset DestroyerTailGlowmask; - // WoF, These are not "exactly" the ExtraTextures public static Asset WallOfFleshDemonSickleTexture; @@ -42,10 +37,6 @@ namespace CalamityMod.ExtraTextures // TODO: - Every other ExtraTextures Reference could be move in here public override void OnModLoad() { - DestroyerHeadGlowmask = ModContent.Request("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow", AssetRequestMode.AsyncLoad); - DestroyerBodyGlowmask = ModContent.Request("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow", AssetRequestMode.AsyncLoad); - DestroyerTailGlowmask = ModContent.Request("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow", AssetRequestMode.AsyncLoad); - WallOfFleshDemonSickleTexture = ModContent.Request("CalamityMod/Projectiles/Melee/ForbiddenOathbladeProjectile", AssetRequestMode.AsyncLoad); FlyingCarpetVanilla = TextureAssets.FlyingCarpet; diff --git a/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow.png b/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow.png deleted file mode 100644 index 3e2235cd1d..0000000000 Binary files a/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow.png and /dev/null differ diff --git a/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow.png b/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow.png deleted file mode 100644 index 4530739af2..0000000000 Binary files a/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow.png and /dev/null differ diff --git a/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow.png b/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow.png deleted file mode 100644 index 2fcbcceb81..0000000000 Binary files a/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow.png and /dev/null differ diff --git a/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow.png b/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow.png deleted file mode 100644 index a988d2bbdc..0000000000 Binary files a/ExtraTextures/VanillaBossGlowmasks/SkeletronPrimeHeadGlow.png and /dev/null differ diff --git a/Localization/en-US/Mods.CalamityMod.Configs.hjson b/Localization/en-US/Mods.CalamityMod.Configs.hjson index 8bd04ca328..fdee9b12c9 100644 --- a/Localization/en-US/Mods.CalamityMod.Configs.hjson +++ b/Localization/en-US/Mods.CalamityMod.Configs.hjson @@ -110,15 +110,6 @@ CalamityClientConfig: { ''' } - EnableVanillaTextureEdits: { - Label: "[i:Paintbrush] Enable Vanilla Texture Edits" - Tooltip: - ''' - Enables slight edits to vanilla boss textures to improve attack telegraphs. - Disable this for compatibility with texture packs. - ''' - } - EnergyShieldOpacity: { Label: "[i:CalamityMod/TheSponge] Energy Shield Opacity" Tooltip: diff --git a/NPCs/CalamityVanillaAIOverrideNPC.Global.cs b/NPCs/CalamityVanillaAIOverrideNPC.Global.cs index 33061a02d0..fd02cb8124 100644 --- a/NPCs/CalamityVanillaAIOverrideNPC.Global.cs +++ b/NPCs/CalamityVanillaAIOverrideNPC.Global.cs @@ -230,8 +230,8 @@ public sealed partial class CalamityVanillaAIOverrideNPC : GlobalNPC // Light colors int alpha = 192; - Color groundColor = new Color(150, 0, 0, alpha); - Color flightColor = revenge ? new Color(0, 0, 150, alpha) : groundColor; + Color groundColor = new Color(255, 125, 125, alpha); + Color flightColor = revenge ? new Color(125, 0, 255, alpha) : groundColor; Color segmentColor = Color.Lerp(groundColor, flightColor, phaseTransitionColorAmount); Color telegraphColor_Red = new Color(255, 125, 125, alpha); Color telegraphColor_Green = new Color(125, 255, 125, alpha); @@ -261,23 +261,17 @@ public sealed partial class CalamityVanillaAIOverrideNPC : GlobalNPC telegraphProgress = MathHelper.Clamp((calNPC.newAI[0] - telegraphGateValue) / DestroyerAI.LaserTelegraphTime, 0f, 1f); } } + Color finalColor = Color.Lerp(segmentColor, telegraphColor, telegraphProgress); + Vector3 teleHsl = Main.rgbToHsl(finalColor); - Texture2D glowTexture = CalamityClientConfig.Instance.EnableVanillaTextureEdits ? ExtraTextureRefs.DestroyerHeadGlowmask.Value : TextureAssets.Dest[0].Value; - switch (npc.type) - { - default: - case NPCID.TheDestroyer: - break; - case NPCID.TheDestroyerBody: - glowTexture = CalamityClientConfig.Instance.EnableVanillaTextureEdits ? ExtraTextureRefs.DestroyerBodyGlowmask.Value : TextureAssets.Dest[1].Value; - break; - case NPCID.TheDestroyerTail: - glowTexture = CalamityClientConfig.Instance.EnableVanillaTextureEdits ? ExtraTextureRefs.DestroyerTailGlowmask.Value : TextureAssets.Dest[2].Value; - break; - } + Texture2D glowTexture = TextureAssets.Dest[npc.type - 134].Value; - 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); + CalamityUtils.EnterShaderRegion(spriteBatch); + GameShaders.Misc["CalamityMod:BasicTint"].UseOpacity(1f); + GameShaders.Misc["CalamityMod:BasicTint"].UseColor(Main.hslToRgb(1f - teleHsl.X, teleHsl.Y, teleHsl.Z)); + GameShaders.Misc["CalamityMod:BasicTint"].Apply(); + spriteBatch.Draw(glowTexture, npc.Center - screenPos + Vector2.UnitY * npc.gfxOffY, npc.frame, Color.White * npc.Opacity, npc.rotation, halfSize, npc.scale, spriteEffects, 0f); + CalamityUtils.ExitShaderRegion(spriteBatch); } return false; }