diff --git a/NPCs/AcidRain/AcidEel.cs b/NPCs/AcidRain/AcidEel.cs index aff378f7f8..ea23207c75 100644 --- a/NPCs/AcidRain/AcidEel.cs +++ b/NPCs/AcidRain/AcidEel.cs @@ -6,6 +6,7 @@ using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using System; @@ -63,6 +64,18 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Along its spine runs an undulating dorsal fin which they can put to great use for their streamlined form, as they rush at prey underwater.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/AcidRain/BloodwormNormal.cs b/NPCs/AcidRain/BloodwormNormal.cs index 9cba78854b..79ca0e41ed 100644 --- a/NPCs/AcidRain/BloodwormNormal.cs +++ b/NPCs/AcidRain/BloodwormNormal.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; @@ -76,6 +77,16 @@ namespace CalamityMod.NPCs.AcidRain } } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SulphurousSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A ripe-looking worm large enough to curl around your arm. A fish would have to be either mad enough or wise enough, to go after one of these.") + }); + } + public override void FindFrame(int frameHeight) { NPC.frameCounter++; diff --git a/NPCs/AcidRain/CragmawMire.cs b/NPCs/AcidRain/CragmawMire.cs index 505e50ee28..9d31943ba0 100644 --- a/NPCs/AcidRain/CragmawMire.cs +++ b/NPCs/AcidRain/CragmawMire.cs @@ -5,6 +5,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.GameContent.ItemDropRules; using Terraria.ID; using Terraria.ModLoader; @@ -86,6 +87,17 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Within its calcified shell which has formed against all logic in the sulphurous sea, a gelatinous body stirs. It is also host to a myriad of other creatures within its armor.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/AcidRain/FlakBaby.cs b/NPCs/AcidRain/FlakBaby.cs index 47564459bd..741381e313 100644 --- a/NPCs/AcidRain/FlakBaby.cs +++ b/NPCs/AcidRain/FlakBaby.cs @@ -6,6 +6,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.NPCs.AcidRain @@ -40,6 +41,16 @@ namespace CalamityMod.NPCs.AcidRain NPC.catchItem = (short)ModContent.ItemType(); } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SulphurousSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Curiously, these seem to be intelligent enough to imprint a sort of parent figure if captured at a young enough age. They will stick with you forever!") + }); + } + public override void AI() { if (NPC.localAI[0] == 0f && Main.netMode != NetmodeID.MultiplayerClient) diff --git a/NPCs/AcidRain/FlakCrab.cs b/NPCs/AcidRain/FlakCrab.cs index f7ad721971..af6698800f 100644 --- a/NPCs/AcidRain/FlakCrab.cs +++ b/NPCs/AcidRain/FlakCrab.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework; using System; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -60,6 +61,17 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A normal crab by all means, except for its shell. It has learned to gather the water around it to expel forcefully through its funnel after treatment. It is a dangerous concoction.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(FleeCountdownTimer); diff --git a/NPCs/AcidRain/GammaSlime.cs b/NPCs/AcidRain/GammaSlime.cs index 1d160d1f3a..fdf7d63da4 100644 --- a/NPCs/AcidRain/GammaSlime.cs +++ b/NPCs/AcidRain/GammaSlime.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; using Terraria.Audio; @@ -59,6 +60,16 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("As the toxins in the water of the sulphurous sea worsen, and the clouds which draw from it grow more hazardous, the slimes become ever more potent.") + }); + } + public override void AI() { // Release green light at the position of the slime. diff --git a/NPCs/AcidRain/IrradiatedSlime.cs b/NPCs/AcidRain/IrradiatedSlime.cs index a73869ad0e..092c0e0497 100644 --- a/NPCs/AcidRain/IrradiatedSlime.cs +++ b/NPCs/AcidRain/IrradiatedSlime.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.NPCs.AcidRain @@ -47,6 +48,17 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Encrusted with gunk that evaporates slowly from the sulphurous sea, these slimes actually form in the upper atmosphere’s acidic rain, before falling back to the earth.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(Falling); diff --git a/NPCs/AcidRain/Mauler.cs b/NPCs/AcidRain/Mauler.cs index d99f9abd54..2152d7d6a7 100644 --- a/NPCs/AcidRain/Mauler.cs +++ b/NPCs/AcidRain/Mauler.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Utilities; @@ -79,6 +80,16 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Sharks are perhaps one of the most resilient and well-adapted species in our planet’s history. It is no surprise that one of these apex predators has come to thrive in these seas.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/AcidRain/NuclearTerror.cs b/NPCs/AcidRain/NuclearTerror.cs index eb615c2d5a..c077fcfeba 100644 --- a/NPCs/AcidRain/NuclearTerror.cs +++ b/NPCs/AcidRain/NuclearTerror.cs @@ -6,6 +6,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using CalamityMod.Buffs.StatDebuffs; @@ -107,6 +108,17 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToElectricity = true; NPC.Calamity().VulnerableToWater = false; } + + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Perhaps it was once just a simple crab or perhaps there are plenty of others like it, lurking in the depths. Any answer is sure to make you want to never set foot in the sulphurous sea again.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.dontTakeDamage); diff --git a/NPCs/AcidRain/NuclearToad.cs b/NPCs/AcidRain/NuclearToad.cs index bd8ba0cd92..bf26b8e038 100644 --- a/NPCs/AcidRain/NuclearToad.cs +++ b/NPCs/AcidRain/NuclearToad.cs @@ -8,6 +8,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -62,6 +63,18 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("When threatened underwater they rapidly inflate and bob to the surface. As a last resort, they forcefully burst themselves. Their selfless goal is the prolonged survival of their kin.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/AcidRain/Orthocera.cs b/NPCs/AcidRain/Orthocera.cs index 96c0511366..367aea5c1a 100644 --- a/NPCs/AcidRain/Orthocera.cs +++ b/NPCs/AcidRain/Orthocera.cs @@ -7,6 +7,7 @@ using CalamityMod.Projectiles.Enemy; using CalamityMod.World; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Microsoft.Xna.Framework; @@ -68,6 +69,17 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Within the muck of the sulphurous sea, it is not uncommon to find creatures from ages past, their bodies entirely preserved. It seems that not all simply passed away.") + }); + } + public override void AI() { Time++; diff --git a/NPCs/AcidRain/Radiator.cs b/NPCs/AcidRain/Radiator.cs index 9562066758..9ad607db67 100644 --- a/NPCs/AcidRain/Radiator.cs +++ b/NPCs/AcidRain/Radiator.cs @@ -5,6 +5,7 @@ using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Terraria; using Terraria.ID; +using Terraria.GameContent.Bestiary; using Terraria.ModLoader; using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.DamageOverTime; @@ -57,6 +58,18 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Like many other sea slugs, it ingests toxins from its environments and displays them along its back in a flashy display. The toxins in the sulphurous sea however, are a bit more potent than others.") + }); + } + public override void AI() { Lighting.AddLight(NPC.Center, 0.3f, 1.5f, 0.3f); diff --git a/NPCs/AcidRain/Skyfin.cs b/NPCs/AcidRain/Skyfin.cs index 32b3bb0738..6434e18139 100644 --- a/NPCs/AcidRain/Skyfin.cs +++ b/NPCs/AcidRain/Skyfin.cs @@ -6,6 +6,7 @@ using CalamityMod.Buffs.StatDebuffs; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -69,6 +70,18 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Their fins are highly adapted to both water and air, and should one of their reckless charges leave them briefly stranded on land, within a few moments, they will take to the air.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/AcidRain/SulfurousSkater.cs b/NPCs/AcidRain/SulfurousSkater.cs index 46aa55f4dd..79c077339b 100644 --- a/NPCs/AcidRain/SulfurousSkater.cs +++ b/NPCs/AcidRain/SulfurousSkater.cs @@ -10,6 +10,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -66,6 +67,17 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("From below, the tips of their legs barely penetrate the surface of the water, and it is hard to distinguish their movements from the rain on the water’s surface.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/AcidRain/Trilobite.cs b/NPCs/AcidRain/Trilobite.cs index b2f1b38408..6194f97053 100644 --- a/NPCs/AcidRain/Trilobite.cs +++ b/NPCs/AcidRain/Trilobite.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; using CalamityMod.Buffs.StatDebuffs; @@ -60,6 +61,17 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Their shell is of notable hardness, and it carries the same weight as stone. It speaks of their strength, for them to be able to fling themselves about the way they do.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/AcidRain/WaterLeech.cs b/NPCs/AcidRain/WaterLeech.cs index 6b120111c7..215aa092f9 100644 --- a/NPCs/AcidRain/WaterLeech.cs +++ b/NPCs/AcidRain/WaterLeech.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Weapons.Magic; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using System.IO; @@ -59,6 +60,18 @@ namespace CalamityMod.NPCs.AcidRain NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier1, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier2, + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AcidRainTier3, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("It can smell the scent of flesh from far distances and will eagerly squirm its way to the source. Once attached to the host, they rapidly intake blood and discharge venom, both of which heavily disadvantage its prey.") + }); + } + public override void SendExtraAI(BinaryWriter writer) => writer.Write(NPC.dontTakeDamage); public override void ReceiveExtraAI(BinaryReader reader) => NPC.dontTakeDamage = reader.ReadBoolean(); diff --git a/NPCs/Astral/Aries.cs b/NPCs/Astral/Aries.cs index 991529f44a..639ac18df5 100644 --- a/NPCs/Astral/Aries.cs +++ b/NPCs/Astral/Aries.cs @@ -7,6 +7,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ModLoader; using Terraria.Audio; using ReLogic.Content; @@ -50,6 +51,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Biologically, the creature suffers terribly. Its legs do not allow it to rest, constantly hopping across the infected landscape. It does not care as its mind is far gone. It continues this until death.") + }); + } + public override void FindFrame(int frameHeight) { CalamityGlobalNPC.SpawnDustOnNPC(NPC, 66, frameHeight, ModContent.DustType(), new Rectangle(44, 18, 12, 12)); diff --git a/NPCs/Astral/AstralProbe.cs b/NPCs/Astral/AstralProbe.cs index c9bf3d4a7d..085b401a38 100644 --- a/NPCs/Astral/AstralProbe.cs +++ b/NPCs/Astral/AstralProbe.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -49,6 +50,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A small animal devoured by the astral infection. The virus retains and shares its experience with itself of devouring other, similar creatures and so, all form identical shells.") + }); + } + public override void AI() { // Setting this in SetDefaults will disable expert mode scaling, so put it here instead diff --git a/NPCs/Astral/AstralSlime.cs b/NPCs/Astral/AstralSlime.cs index 1f56d8ba20..0376547d23 100644 --- a/NPCs/Astral/AstralSlime.cs +++ b/NPCs/Astral/AstralSlime.cs @@ -7,6 +7,7 @@ using CalamityMod.Items.Weapons.Summon; using CalamityMod.World; using Microsoft.Xna.Framework; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -46,6 +47,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("It does not show behavior different from any of its gelatinous folk, so this adaptive creature may have been the only one to fight the infection in its own way.") + }); + } + public override void FindFrame(int frameHeight) { //DO DUST diff --git a/NPCs/Astral/AstralachneaGround.cs b/NPCs/Astral/AstralachneaGround.cs index dbf4597ef7..d6b8e1496e 100644 --- a/NPCs/Astral/AstralachneaGround.cs +++ b/NPCs/Astral/AstralachneaGround.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -58,6 +59,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralUnderground, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("An arachnid taken over by the infection, it has lost its ability to spin webs and hosts a myriad of astral growths on its abdomen.") + }); + } + public override void AI() { NPC.TargetClosest(); diff --git a/NPCs/Astral/Atlas.cs b/NPCs/Astral/Atlas.cs index 0804080a26..2caa564f8d 100644 --- a/NPCs/Astral/Atlas.cs +++ b/NPCs/Astral/Atlas.cs @@ -11,6 +11,7 @@ using System.IO; using Terraria; using Terraria.ID; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.DataStructures; using Terraria.ModLoader; using Terraria.Audio; @@ -142,6 +143,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("In its uncontrolled growth, one appendage wrested nutrients and materials from the other and brought it to the extremes of muscular strength. One blow is enough to pulverize a monolith.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { BitsByte bb = new BitsByte(idling, idle_impulseWalk, idle_walkLeft, idle_blocked, swinging, swingYeet); diff --git a/NPCs/Astral/BigSightseer.cs b/NPCs/Astral/BigSightseer.cs index 002367232f..25733f4287 100644 --- a/NPCs/Astral/BigSightseer.cs +++ b/NPCs/Astral/BigSightseer.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; using Terraria.Audio; @@ -58,6 +59,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Within their shells, the virus brews a potent chemical. When the seer approaches a foe, it spits this chemical out of its mandibles, hoping to melt the intruder’s flesh.") + }); + } + public override void FindFrame(int frameHeight) { NPC.frameCounter += 0.05f + NPC.velocity.Length() * 0.667f; diff --git a/NPCs/Astral/FusionFeeder.cs b/NPCs/Astral/FusionFeeder.cs index 2ecafc9a6f..8d7da1e01a 100644 --- a/NPCs/Astral/FusionFeeder.cs +++ b/NPCs/Astral/FusionFeeder.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -55,6 +56,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralDesert, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A sand shark that has been taken by the astral infection. Unfamiliar with the origins of the virus, its mind is flooded with information gathered throughout the cosmos, and it thirsts for the plasma of distant stars.") + }); + } + public override void FindFrame(int frameHeight) { //DO DUST diff --git a/NPCs/Astral/Hadarian.cs b/NPCs/Astral/Hadarian.cs index 0ec11bdba3..2f60d195ac 100644 --- a/NPCs/Astral/Hadarian.cs +++ b/NPCs/Astral/Hadarian.cs @@ -9,6 +9,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.GameContent; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -53,6 +54,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralDesert, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("The membrane of their wings is particularly tough, for material so thin. It has been known to guard them against burns and projectiles as they mercilessly tear at their foes.") + }); + } + public override void AI() { CalamityGlobalNPC.DoVultureAI(NPC, (CalamityWorld.death ? 0.225f : 0.15f), (CalamityWorld.death ? 5.25f : 3.5f), 32, 50, 150, 150); diff --git a/NPCs/Astral/Hive.cs b/NPCs/Astral/Hive.cs index 84cbde6352..86fcd37cf8 100644 --- a/NPCs/Astral/Hive.cs +++ b/NPCs/Astral/Hive.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ModLoader; using Terraria.Audio; using ReLogic.Content; @@ -50,6 +51,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralUnderground, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("These seem to erupt from the caverns of the astral itself. The flesh of their hosts twists into a spiral and countless bodies make up the pulsing flesh of the hive.") + }); + } + public override void AI() { NPC.ai[0]++; diff --git a/NPCs/Astral/Hiveling.cs b/NPCs/Astral/Hiveling.cs index fd554bd50e..cbcbf78c34 100644 --- a/NPCs/Astral/Hiveling.cs +++ b/NPCs/Astral/Hiveling.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ModLoader; using Terraria.Audio; using ReLogic.Content; @@ -46,6 +47,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralUnderground, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A small creature, one entirely original to the astral infection, save for a tiny core of organic material it takes from the host Hive. They are easily squashed but swarm if endangered.") + }); + } + public override void AI() { if (NPC.ai[1] == 0f) diff --git a/NPCs/Astral/Mantis.cs b/NPCs/Astral/Mantis.cs index c94c12078d..56e9a8a09a 100644 --- a/NPCs/Astral/Mantis.cs +++ b/NPCs/Astral/Mantis.cs @@ -9,6 +9,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -54,6 +55,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A nimble mutation of the astral infection, its many legs allow it to quickly traverse nearly any terrain the infection devours. By swinging its front claws at high speeds, it releases harmful blades of energy.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/Astral/Nova.cs b/NPCs/Astral/Nova.cs index d4a24ab40b..0fd6bbc526 100644 --- a/NPCs/Astral/Nova.cs +++ b/NPCs/Astral/Nova.cs @@ -10,6 +10,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using Terraria; using Terraria.DataStructures; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -75,6 +76,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("The process of forced biological mutation is potent with the astral virus, and the byproducts are volatile. Most creatures discharge this chemical gradually and lose that liability— but a Nova stores it.") + }); + } + public override void FindFrame(int frameHeight) { NPC.frameCounter++; diff --git a/NPCs/Astral/SmallSightseer.cs b/NPCs/Astral/SmallSightseer.cs index 11d0b8da41..7b4b936afb 100644 --- a/NPCs/Astral/SmallSightseer.cs +++ b/NPCs/Astral/SmallSightseer.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; using Terraria.Audio; @@ -53,6 +54,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Within their shells, the virus brews a potent chemical. When the seer approaches a foe, it spits this chemical out of its mandibles, hoping to melt the intruder’s flesh.") + }); + } + public override void FindFrame(int frameHeight) { NPC.frameCounter += 0.05f + NPC.velocity.Length() * 0.667f; diff --git a/NPCs/Astral/StellarCulex.cs b/NPCs/Astral/StellarCulex.cs index a1bd04346d..7a3e82192a 100644 --- a/NPCs/Astral/StellarCulex.cs +++ b/NPCs/Astral/StellarCulex.cs @@ -8,6 +8,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -54,6 +55,16 @@ namespace CalamityMod.NPCs.Astral NPC.Calamity().VulnerableToSickness = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralUnderground, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Many pincers line the face of this mutation. It will attempt to attach itself to other organic creatures, and lower its mouth to their flesh to feed.") + }); + } + public override void FindFrame(int frameHeight) { //DO DUST diff --git a/NPCs/Astral/Twinkler.cs b/NPCs/Astral/Twinkler.cs index fbc7ba91f7..6a451f6d6b 100644 --- a/NPCs/Astral/Twinkler.cs +++ b/NPCs/Astral/Twinkler.cs @@ -1,6 +1,7 @@ using CalamityMod.Dusts; using CalamityMod.Items.Critters; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -29,6 +30,16 @@ namespace CalamityMod.NPCs.Astral //BannerItem = ModContent.ItemType(); } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.AstralSurface, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A rare case of the astral infection creating a harmless creature. They flicker rather prettily, and you’re not going to be the only one who thinks so. They make useful bait.") + }); + } + public override bool? CanBeHitByItem(Player player, Item item) => true; public override bool? CanBeHitByProjectile(Projectile projectile) => true; diff --git a/NPCs/NormalNPCs/WulfrumDrone.cs b/NPCs/NormalNPCs/WulfrumDrone.cs index b5419ddab2..cb0e067461 100644 --- a/NPCs/NormalNPCs/WulfrumDrone.cs +++ b/NPCs/NormalNPCs/WulfrumDrone.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -73,6 +74,17 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.Calamity().VulnerableToElectricity = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Surface, + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.DayTime, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Rotating their small frames, they swoop at potential intruders into a predefined territory that no longer exists. They wander without purpose.") + }); + } + public override void SendExtraAI(BinaryWriter writer) => writer.Write(FlyAwayTimer); public override void ReceiveExtraAI(BinaryReader reader) => FlyAwayTimer = reader.ReadSingle(); diff --git a/NPCs/NormalNPCs/WulfrumGyrator.cs b/NPCs/NormalNPCs/WulfrumGyrator.cs index 58dc6aa7f9..6245e0dd7f 100644 --- a/NPCs/NormalNPCs/WulfrumGyrator.cs +++ b/NPCs/NormalNPCs/WulfrumGyrator.cs @@ -4,6 +4,7 @@ using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -58,6 +59,17 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.Calamity().VulnerableToElectricity = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Surface, + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.DayTime, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("An orb of wulfrum metal. How it travels is a mystery, though it likely has something to do with its gyroscopic spinning. They fling their bodies at enemies to attack.") + }); + } + public override void FindFrame(int frameHeight) { NPC.frameCounter++; diff --git a/NPCs/NormalNPCs/WulfrumHovercraft.cs b/NPCs/NormalNPCs/WulfrumHovercraft.cs index f00782d690..83e3970a1b 100644 --- a/NPCs/NormalNPCs/WulfrumHovercraft.cs +++ b/NPCs/NormalNPCs/WulfrumHovercraft.cs @@ -5,6 +5,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; @@ -80,6 +81,17 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.Calamity().VulnerableToElectricity = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Surface, + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.DayTime, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Traveling with propulsion that carries them over the ground with ease, they seek out trespassers, though their analysis likely has grown imperceptive with age.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(StunTime); diff --git a/NPCs/NormalNPCs/WulfrumPylon.cs b/NPCs/NormalNPCs/WulfrumPylon.cs index e86f958952..bb761d3ded 100644 --- a/NPCs/NormalNPCs/WulfrumPylon.cs +++ b/NPCs/NormalNPCs/WulfrumPylon.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Materials; using CalamityMod.Items.Placeables.Banners; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -58,6 +59,17 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.Calamity().VulnerableToElectricity = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Surface, + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.DayTime, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A stationary foe, though its function is far from harmless. Within its influence, other wulfrum creations become notably empowered, the curious energy within them, overflowing.") + }); + } + public override void AI() { NPC.TargetClosest(false); diff --git a/NPCs/NormalNPCs/WulfrumRover.cs b/NPCs/NormalNPCs/WulfrumRover.cs index fee330f3f8..4b22e5957e 100644 --- a/NPCs/NormalNPCs/WulfrumRover.cs +++ b/NPCs/NormalNPCs/WulfrumRover.cs @@ -5,6 +5,7 @@ using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -57,6 +58,17 @@ namespace CalamityMod.NPCs.NormalNPCs NPC.Calamity().VulnerableToElectricity = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Surface, + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.DayTime, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("An aged automaton of unknown origins. With an incessant sense of duty and worn frame, they scour the land. Their lamps shine with curious energy.") + }); + } + public override void FindFrame(int frameHeight) { NPC.frameCounter++;