diff --git a/NPCs/Astral/EnchantedNightcrawler.cs b/NPCs/Astral/EnchantedNightcrawler.cs index c932f353a4..a8906995ef 100644 --- a/NPCs/Astral/EnchantedNightcrawler.cs +++ b/NPCs/Astral/EnchantedNightcrawler.cs @@ -9,11 +9,10 @@ namespace CalamityMod.NPCs.Astral { public override void SetStaticDefaults() { + this.HideFromBestiary(); DisplayName.SetDefault("Enchanted Nightcrawler"); Main.npcFrameCount[NPC.type] = 2; Main.npcCatchable[NPC.type] = true; - NPCID.Sets.NPCBestiaryDrawModifiers bestiaryData = new NPCID.Sets.NPCBestiaryDrawModifiers(0){ Hide = true }; - NPCID.Sets.NPCBestiaryDrawOffset.Add(Type, bestiaryData); NPCID.Sets.CountsAsCritter[NPC.type] = true; } diff --git a/NPCs/ExoMechs/Draedon.cs b/NPCs/ExoMechs/Draedon.cs index dd97ea728a..4d0c715d8b 100644 --- a/NPCs/ExoMechs/Draedon.cs +++ b/NPCs/ExoMechs/Draedon.cs @@ -7,6 +7,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.Graphics.Shaders; using Terraria.ID; using Terraria.ModLoader; @@ -101,6 +102,17 @@ namespace CalamityMod.NPCs.ExoMechs NPC.Calamity().DoesNotGenerateRage = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //We'll probably want a custom background for Exos like ML has. + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Exo, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("The esteemed scientist himself. His AI is uploaded into a database, far from harm, and thus destroying his recon bodies achieves nothing.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(DialogueType);