From e97ecbbecdceacce59ce2c5f4f505a9dfe09eee4 Mon Sep 17 00:00:00 2001 From: GinYuH <72181395+GinYuH@users.noreply.github.com> Date: Tue, 13 Aug 2024 21:18:19 -0700 Subject: [PATCH] fixed bestiary provi being invisible (indev bug) --- NPCs/Providence/Providence.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index 385a05ebb1..7755ae0bd7 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -2241,7 +2241,8 @@ namespace CalamityMod.NPCs.Providence Vector2 BasePosition = NPC.Center - screenPos; BasePosition -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[NPC.type]) * NPC.scale / 2f; BasePosition += RotationCenter * NPC.scale + new Vector2(0f, NPC.gfxOffY) + drawOffset; - spriteBatch.Draw(texture, BasePosition, NPC.frame, (colorOverride ?? Lighting.GetColor((int)NPC.Center.X / 16, (int)NPC.Center.Y / 16)) * NPC.Opacity, NPC.rotation, RotationCenter, NPC.scale, spriteEffects, 0f); + Color finalDrawColor = NPC.IsABestiaryIconDummy ? Color.White : (colorOverride ?? Lighting.GetColor((int)NPC.Center.X / 16, (int)NPC.Center.Y / 16)) * NPC.Opacity; + spriteBatch.Draw(texture, BasePosition, NPC.frame, finalDrawColor, NPC.rotation, RotationCenter, NPC.scale, spriteEffects, 0f); // Draw the glowmask textures + their afterimages // These are the colors at their strongest point. It'll shift towards white by the brightness value used earlier.