diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index cb30fed767..198517192e 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -25,6 +25,7 @@ using CalamityMod.NPCs.AstrumDeus; using CalamityMod.NPCs.Bumblebirb; using CalamityMod.NPCs.CalClone; using CalamityMod.NPCs.CeaselessVoid; +using CalamityMod.NPCs.Deconstructors; using CalamityMod.NPCs.DesertScourge; using CalamityMod.NPCs.DevourerofGods; using CalamityMod.NPCs.DraedonLabThings; @@ -6069,7 +6070,8 @@ namespace CalamityMod.NPCs ]; // Insert the debuff info into the NPC's bestiary entry - bestiaryEntry.Info.Insert(0, new BestiaryDebuffInfo(elements)); + bool force = npc.type == ModContent.NPCType(); //Force Burrower to always show the debuff section + bestiaryEntry.Info.Insert(0, new BestiaryDebuffInfo(elements,force)); // Add the Astral Infection to the Enchanted Nightcrawler's entry as it spawns there now if (npc.type == NPCID.EnchantedNightcrawler) diff --git a/UI/DebuffSystem/BestiaryDebuffInfo.cs b/UI/DebuffSystem/BestiaryDebuffInfo.cs index 30f3f2c546..a517c49aac 100644 --- a/UI/DebuffSystem/BestiaryDebuffInfo.cs +++ b/UI/DebuffSystem/BestiaryDebuffInfo.cs @@ -1,4 +1,5 @@ -using Microsoft.Xna.Framework; +using System.Linq; +using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.GameContent.Bestiary; @@ -12,10 +13,12 @@ namespace CalamityMod.UI.DebuffSystem public class BestiaryDebuffInfo : IBestiaryInfoElement, IBestiaryPrioritizedElement, ICategorizedBestiaryInfoElement { public string[] elements; + public bool force = false; - public BestiaryDebuffInfo(string[] elements) + public BestiaryDebuffInfo(string[] elements, bool force = false) { this.elements = elements; + this.force = force; } // Below base stats (damage/defense/etc) @@ -26,7 +29,7 @@ namespace CalamityMod.UI.DebuffSystem public UIElement ProvideUIElement(BestiaryUICollectionInfo info) { // Don't show debuff info until stats are unlocked - if (info.UnlockState < BestiaryEntryUnlockState.CanShowStats_2) + if (info.UnlockState < BestiaryEntryUnlockState.CanShowStats_2 && !force) { return null; }