diff --git a/NPCs/Abyss/Bloatfish.cs b/NPCs/Abyss/Bloatfish.cs index acd4ee5b55..4da11f7f02 100644 --- a/NPCs/Abyss/Bloatfish.cs +++ b/NPCs/Abyss/Bloatfish.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Banners; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -41,6 +42,16 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer4, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Heavy, large fish which can easily resist the crushing pressure of the depths and any weapon which might attempt to pierce its tough skin.") + }); + } + public override void AI() { NPC.spriteDirection = (NPC.direction > 0) ? 1 : -1; diff --git a/NPCs/Abyss/BobbitWormHead.cs b/NPCs/Abyss/BobbitWormHead.cs index 7f9ed6dd77..873328f488 100644 --- a/NPCs/Abyss/BobbitWormHead.cs +++ b/NPCs/Abyss/BobbitWormHead.cs @@ -7,6 +7,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -45,6 +46,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //oh god + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer4, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("An immense threat for those who dare venture into the depths. Nearly imperceptible when they choose to be, and lightning-fast when they attack, their jaws can cut through iron plates over half a foot thick.") + }); + } + public override void AI() { if (!Main.npc[(int)NPC.ai[2]].active || (int)NPC.ai[2] < 0) diff --git a/NPCs/Abyss/BoxJellyfish.cs b/NPCs/Abyss/BoxJellyfish.cs index 04b36ba4de..2c248e5267 100644 --- a/NPCs/Abyss/BoxJellyfish.cs +++ b/NPCs/Abyss/BoxJellyfish.cs @@ -3,6 +3,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -41,6 +42,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Ocean, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer1, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("These seemingly inept masses of gelatin are anything but harmless. Let even one of their trailing tentacles brush you, and you will be heavily envenomed.") + }); + } + public override void AI() { if (NPC.direction == 0) diff --git a/NPCs/Abyss/ChaoticPuffer.cs b/NPCs/Abyss/ChaoticPuffer.cs index 444ac843f7..a89d9c9554 100644 --- a/NPCs/Abyss/ChaoticPuffer.cs +++ b/NPCs/Abyss/ChaoticPuffer.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -49,6 +50,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Anarchistic little devils, they swallow large amounts of water to inflate their bristling bodies. The water within them boils and bursts out in a scalding rush when they are killed.") + }); + } + public override void AI() { NPC.TargetClosest(true); diff --git a/NPCs/Abyss/ColossalSquid.cs b/NPCs/Abyss/ColossalSquid.cs index c34045ad38..fa3651bdb0 100644 --- a/NPCs/Abyss/ColossalSquid.cs +++ b/NPCs/Abyss/ColossalSquid.cs @@ -11,6 +11,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -54,6 +55,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer4, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("With crushing tentacles that stretch out to over twice the length of a grown man, and toxic black ink, these are formidable predators indeed.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(hasBeenHit); diff --git a/NPCs/Abyss/Cuttlefish.cs b/NPCs/Abyss/Cuttlefish.cs index cad7e43f8a..686a8dd560 100644 --- a/NPCs/Abyss/Cuttlefish.cs +++ b/NPCs/Abyss/Cuttlefish.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; @@ -44,6 +45,18 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Should you feel something brush your legs in the depths of the abyss, it is likely that this is the culprit, tasting the waters for potential prey.") + }); + } + public override void AI() { NPC.spriteDirection = (NPC.direction > 0) ? 1 : -1; diff --git a/NPCs/Abyss/DevilFish.cs b/NPCs/Abyss/DevilFish.cs index 2f66f03366..dd99d65720 100644 --- a/NPCs/Abyss/DevilFish.cs +++ b/NPCs/Abyss/DevilFish.cs @@ -9,6 +9,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -50,6 +51,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A sturdy fish, which has spent a long time seething in the Abyss. Males are easily identified by their forward-facing horns, and females by their curled horns.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(brokenMask); diff --git a/NPCs/Abyss/DevilFishAlt.cs b/NPCs/Abyss/DevilFishAlt.cs index 24294b6006..12ed1d4a56 100644 --- a/NPCs/Abyss/DevilFishAlt.cs +++ b/NPCs/Abyss/DevilFishAlt.cs @@ -9,6 +9,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -50,6 +51,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A sturdy fish, which has spent a long time seething in the Abyss. Males are easily identified by their forward-facing horns, and females by their curled horns.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(brokenMask); diff --git a/NPCs/Abyss/EidolonWyrmHead.cs b/NPCs/Abyss/EidolonWyrmHead.cs index c50e28bdac..88a7edd535 100644 --- a/NPCs/Abyss/EidolonWyrmHead.cs +++ b/NPCs/Abyss/EidolonWyrmHead.cs @@ -11,6 +11,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; @@ -64,6 +65,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer4, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Among any creature ever witnessed, it is these that stray furthest from our understanding. Such grand might, such mystery…") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.WriteVector2(patrolSpot); diff --git a/NPCs/Abyss/GiantSquid.cs b/NPCs/Abyss/GiantSquid.cs index 02a536b8a1..1bd4a9d85d 100644 --- a/NPCs/Abyss/GiantSquid.cs +++ b/NPCs/Abyss/GiantSquid.cs @@ -9,6 +9,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; @@ -47,6 +48,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A massive squid, having gained its size from the abundance of prey and little competition in its habitat. Its eyes are specially adapted to seeking out prey in the darkness.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(hasBeenHit); diff --git a/NPCs/Abyss/GulperEelHead.cs b/NPCs/Abyss/GulperEelHead.cs index 3b7b17d5d3..cdc39270f6 100644 --- a/NPCs/Abyss/GulperEelHead.cs +++ b/NPCs/Abyss/GulperEelHead.cs @@ -8,6 +8,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -55,6 +56,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer4, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Massive in length and in breadth, this eel resides in the deeper caverns of the abyss. Its jaws have the curious ability to hyperextend and swallow nearly any prey it sets its eyes upon.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.WriteVector2(patrolSpot); diff --git a/NPCs/Abyss/Laserfish.cs b/NPCs/Abyss/Laserfish.cs index 820828f4ae..ab37085fb1 100644 --- a/NPCs/Abyss/Laserfish.cs +++ b/NPCs/Abyss/Laserfish.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -43,6 +44,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Its eyes are blinded by bacteria that gather in large sacs on its head. As it swims through the waters, relying on primitive echolocation, the bacteria are able to release concussive blasts to clear its path.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/Abyss/LuminousCorvina.cs b/NPCs/Abyss/LuminousCorvina.cs index 18f749836d..ac4c742de7 100644 --- a/NPCs/Abyss/LuminousCorvina.cs +++ b/NPCs/Abyss/LuminousCorvina.cs @@ -10,6 +10,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -50,6 +51,16 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("This fish has a peculiar defense mechanism. When a threat such as yourself enters its field of view, it releases a shrill pulse alerting others to not its presence— but yours.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(hasBeenHit); diff --git a/NPCs/Abyss/MirageJelly.cs b/NPCs/Abyss/MirageJelly.cs index fdea3d66e5..92ec346121 100644 --- a/NPCs/Abyss/MirageJelly.cs +++ b/NPCs/Abyss/MirageJelly.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; @@ -50,6 +51,16 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("In the encapsulating darkness of the abyss, a drifting purple light that seems to ignore all physical boundaries is likely one of these. Many even doubt their existence and blame it on the rapture of the deep.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(hasBeenHit); diff --git a/NPCs/Abyss/MorayEel.cs b/NPCs/Abyss/MorayEel.cs index 75e2a885e6..6a57714a3b 100644 --- a/NPCs/Abyss/MorayEel.cs +++ b/NPCs/Abyss/MorayEel.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Weapons.Melee; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; @@ -40,6 +41,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Ocean, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer1, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Their eyes gleam with hunger, and they inhabit the rocks of underwater structures when at rest, only occasionally roaming the open waters.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/Abyss/OarfishHead.cs b/NPCs/Abyss/OarfishHead.cs index 8d1b89fc40..f245a676dc 100644 --- a/NPCs/Abyss/OarfishHead.cs +++ b/NPCs/Abyss/OarfishHead.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -52,6 +53,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A peculiar bony fish many have only ever seen as corpses washed up on a beach, but in their natural habitat, their red fins stream behind them, as they drift in the water column.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.WriteVector2(patrolSpot); diff --git a/NPCs/Abyss/Reaper.cs b/NPCs/Abyss/Reaper.cs index f3c0b55757..8d02498af4 100644 --- a/NPCs/Abyss/Reaper.cs +++ b/NPCs/Abyss/Reaper.cs @@ -9,6 +9,7 @@ using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -64,6 +65,17 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer4, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Evolution is a strange mistress, especially in the depths of the abyss. To some, she grants a straightforward path to life, and to others, she grants arms.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(reset); diff --git a/NPCs/Abyss/ToxicMinnow.cs b/NPCs/Abyss/ToxicMinnow.cs index f81e9324c4..cf70fd471f 100644 --- a/NPCs/Abyss/ToxicMinnow.cs +++ b/NPCs/Abyss/ToxicMinnow.cs @@ -8,6 +8,7 @@ using System; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -51,6 +52,18 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("It spends much of its time finding the most repulsive and disagreeable vegetation for animals to feast upon. Their bellies glow green as they process the chemicals to use in self-defense.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/Abyss/Viperfish.cs b/NPCs/Abyss/Viperfish.cs index 7f09d82566..c927ac8f42 100644 --- a/NPCs/Abyss/Viperfish.cs +++ b/NPCs/Abyss/Viperfish.cs @@ -7,6 +7,7 @@ using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -44,6 +45,18 @@ namespace CalamityMod.NPCs.Abyss NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AbyssLayer3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A typically docile animal, it spends much of its time meandering about the rocky outcrops of the abyss. When approached it can become quite aggressive.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable);