diff --git a/BiomeManagers/AbyssIcon.png b/BiomeManagers/AbyssIcon.png new file mode 100644 index 0000000000..a4956f8c7d Binary files /dev/null and b/BiomeManagers/AbyssIcon.png differ diff --git a/BiomeManagers/AcidRainIcon.png b/BiomeManagers/AcidRainIcon.png new file mode 100644 index 0000000000..ca6a40d30a Binary files /dev/null and b/BiomeManagers/AcidRainIcon.png differ diff --git a/BiomeManagers/AstralCavernIcon.png b/BiomeManagers/AstralCavernIcon.png new file mode 100644 index 0000000000..c376590d52 Binary files /dev/null and b/BiomeManagers/AstralCavernIcon.png differ diff --git a/BiomeManagers/AstralDesertCaveIcon.png b/BiomeManagers/AstralDesertCaveIcon.png new file mode 100644 index 0000000000..473959b092 Binary files /dev/null and b/BiomeManagers/AstralDesertCaveIcon.png differ diff --git a/BiomeManagers/AstralDesertIcon.png b/BiomeManagers/AstralDesertIcon.png new file mode 100644 index 0000000000..a6814f5343 Binary files /dev/null and b/BiomeManagers/AstralDesertIcon.png differ diff --git a/BiomeManagers/AstralIceIcon.png b/BiomeManagers/AstralIceIcon.png new file mode 100644 index 0000000000..845f142679 Binary files /dev/null and b/BiomeManagers/AstralIceIcon.png differ diff --git a/BiomeManagers/AstralInfectionIcon.png b/BiomeManagers/AstralInfectionIcon.png new file mode 100644 index 0000000000..955fb28a47 Binary files /dev/null and b/BiomeManagers/AstralInfectionIcon.png differ diff --git a/BiomeManagers/AstralUndergroundIcon.png b/BiomeManagers/AstralUndergroundIcon.png new file mode 100644 index 0000000000..96b39a1361 Binary files /dev/null and b/BiomeManagers/AstralUndergroundIcon.png differ diff --git a/BiomeManagers/BrimstoneCragsIcon.png b/BiomeManagers/BrimstoneCragsIcon.png new file mode 100644 index 0000000000..4dbd59054d Binary files /dev/null and b/BiomeManagers/BrimstoneCragsIcon.png differ diff --git a/BiomeManagers/LaboratoryIcon.png b/BiomeManagers/LaboratoryIcon.png new file mode 100644 index 0000000000..9e76143b90 Binary files /dev/null and b/BiomeManagers/LaboratoryIcon.png differ diff --git a/BiomeManagers/SulpherousSeaIcon.png b/BiomeManagers/SulpherousSeaIcon.png new file mode 100644 index 0000000000..4d07469c5c Binary files /dev/null and b/BiomeManagers/SulpherousSeaIcon.png differ diff --git a/BiomeManagers/SunkenSeaIcon.png b/BiomeManagers/SunkenSeaIcon.png new file mode 100644 index 0000000000..cd5f625e8b Binary files /dev/null and b/BiomeManagers/SunkenSeaIcon.png differ diff --git a/NPCs/Abyss/BobbitWormHead.cs b/NPCs/Abyss/BobbitWormHead.cs index 873328f488..8de2f9b812 100644 --- a/NPCs/Abyss/BobbitWormHead.cs +++ b/NPCs/Abyss/BobbitWormHead.cs @@ -49,7 +49,6 @@ namespace CalamityMod.NPCs.Abyss 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. diff --git a/NPCs/AcidRain/CragmawMire.cs b/NPCs/AcidRain/CragmawMire.cs index 9d31943ba0..477cd8379c 100644 --- a/NPCs/AcidRain/CragmawMire.cs +++ b/NPCs/AcidRain/CragmawMire.cs @@ -52,6 +52,7 @@ namespace CalamityMod.NPCs.AcidRain { DisplayName.SetDefault("Cragmaw Mire"); Main.npcFrameCount[NPC.type] = 2; + NPCID.Sets.BossBestiaryPriority.Add(Type); } public override void SetDefaults() diff --git a/NPCs/AcidRain/Mauler.cs b/NPCs/AcidRain/Mauler.cs index 2152d7d6a7..8fac835335 100644 --- a/NPCs/AcidRain/Mauler.cs +++ b/NPCs/AcidRain/Mauler.cs @@ -45,6 +45,7 @@ namespace CalamityMod.NPCs.AcidRain { DisplayName.SetDefault("Mauler"); Main.npcFrameCount[NPC.type] = 8; + NPCID.Sets.BossBestiaryPriority.Add(Type); NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) { Scale = 0.425f, diff --git a/NPCs/AcidRain/NuclearTerror.cs b/NPCs/AcidRain/NuclearTerror.cs index c077fcfeba..6261f47ccf 100644 --- a/NPCs/AcidRain/NuclearTerror.cs +++ b/NPCs/AcidRain/NuclearTerror.cs @@ -75,6 +75,7 @@ namespace CalamityMod.NPCs.AcidRain Main.npcFrameCount[NPC.type] = 14; NPCID.Sets.TrailCacheLength[NPC.type] = 6; NPCID.Sets.TrailingMode[NPC.type] = 1; + NPCID.Sets.BossBestiaryPriority.Add(Type); NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) { Scale = 0.4f, diff --git a/NPCs/AquaticScourge/AquaticParasite.cs b/NPCs/AquaticScourge/AquaticParasite.cs index 10508e1e16..4719d64b6b 100644 --- a/NPCs/AquaticScourge/AquaticParasite.cs +++ b/NPCs/AquaticScourge/AquaticParasite.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -36,6 +37,16 @@ namespace CalamityMod.NPCs.AquaticScourge NPC.Calamity().VulnerableToWater = false; } + 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("If you see this, tell the devs to delete this creature :)") + }); + } + public override void AI() { bool flag15 = false; diff --git a/NPCs/AquaticScourge/AquaticSeekerHead.cs b/NPCs/AquaticScourge/AquaticSeekerHead.cs index fd42e54e0a..aa694dbf0b 100644 --- a/NPCs/AquaticScourge/AquaticSeekerHead.cs +++ b/NPCs/AquaticScourge/AquaticSeekerHead.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Placeables.Banners; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -46,6 +47,16 @@ namespace CalamityMod.NPCs.AquaticScourge NPC.Calamity().VulnerableToWater = false; } + 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 strange creature. If you are pierced by its horn made of bone, seek medical attention- you do not want it to get infected.") + }); + } + public override void AI() { if (NPC.ai[2] > 0f) diff --git a/NPCs/AquaticScourge/AquaticUrchin.cs b/NPCs/AquaticScourge/AquaticUrchin.cs index 0398044019..afa5beb36e 100644 --- a/NPCs/AquaticScourge/AquaticUrchin.cs +++ b/NPCs/AquaticScourge/AquaticUrchin.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Weapons.Rogue; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -36,6 +37,16 @@ namespace CalamityMod.NPCs.AquaticScourge NPC.Calamity().VulnerableToWater = false; } + 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 relative of its brethren in the far ocean, this one’s spines have been hardened by the sulphuric waters. They drip with the venom they inhabit, so it’s better to not be struck by them.") + }); + } + public override void AI() { CalamityAI.UnicornAI(NPC, Mod, true, NPC.wet ? 12f : 4f, NPC.wet ? 7f : 3f, NPC.wet ? 0.12f : 0.05f, NPC.wet ? -16f : -7.5f, NPC.wet ? -14f : -6.5f, NPC.wet ? -13f : -6f, NPC.wet ? -12f : -5f, NPC.wet ? -15f : -7f); diff --git a/NPCs/DesertScourge/DesertNuisanceHead.cs b/NPCs/DesertScourge/DesertNuisanceHead.cs index 10df789500..a26d1eb24b 100644 --- a/NPCs/DesertScourge/DesertNuisanceHead.cs +++ b/NPCs/DesertScourge/DesertNuisanceHead.cs @@ -2,6 +2,7 @@ using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -16,7 +17,11 @@ namespace CalamityMod.NPCs.DesertScourge public int maxLength = 13; bool TailSpawned = false; - public override void SetStaticDefaults() => DisplayName.SetDefault("A Desert Nuisance"); + public override void SetStaticDefaults() + { + DisplayName.SetDefault("A Desert Nuisance"); + NPCID.Sets.BossBestiaryPriority.Add(Type); + } public override void SetDefaults() { @@ -41,6 +46,19 @@ namespace CalamityMod.NPCs.DesertScourge NPC.Calamity().VulnerableToWater = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + int associatedNPCType = ModContent.NPCType(); + bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true); + + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Desert, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("The starved spawn of the Desert Scourge. Like piranhas of the desert, they can swarm and tear apart smaller animals within seconds.") + }); + } + public override void AI() { if (NPC.ai[2] > 0f) diff --git a/NPCs/DesertScourge/DesertScourgeHead.cs b/NPCs/DesertScourge/DesertScourgeHead.cs index 38b7430f88..a9c1853f0f 100644 --- a/NPCs/DesertScourge/DesertScourgeHead.cs +++ b/NPCs/DesertScourge/DesertScourgeHead.cs @@ -16,6 +16,7 @@ using System; using System.IO; using System.Reflection; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.Audio; @@ -34,6 +35,7 @@ namespace CalamityMod.NPCs.DesertScourge public override void SetStaticDefaults() { DisplayName.SetDefault("Desert Scourge"); + NPCID.Sets.BossBestiaryPriority.Add(Type); } public override void SetDefaults() @@ -75,6 +77,16 @@ namespace CalamityMod.NPCs.DesertScourge NPC.Calamity().VulnerableToWater = true; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Desert, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("If ever before you have peered out into the desert and seen entire dunes rise and fall like the waves of the sea, it is not unlikely that this is the culprit, as it bore through the sands below.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(biomeEnrageTimer); diff --git a/NPCs/SulphurousSea/AnthozoanCrab.cs b/NPCs/SulphurousSea/AnthozoanCrab.cs index 1b5d50fdce..e1b0ba822e 100644 --- a/NPCs/SulphurousSea/AnthozoanCrab.cs +++ b/NPCs/SulphurousSea/AnthozoanCrab.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; @@ -42,6 +43,17 @@ namespace CalamityMod.NPCs.SulphurousSea 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.SulphurousSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A crab that has placed upon its back, a sturdy structure of stone. It is quite strong and displays this extraordinary strength by hurling boulders at those who encroach on its territory.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(boulderIndex); diff --git a/NPCs/SulphurousSea/BelchingCoral.cs b/NPCs/SulphurousSea/BelchingCoral.cs index cb66930086..7b2dda8493 100644 --- a/NPCs/SulphurousSea/BelchingCoral.cs +++ b/NPCs/SulphurousSea/BelchingCoral.cs @@ -8,6 +8,7 @@ using CalamityMod.World; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -41,6 +42,17 @@ namespace CalamityMod.NPCs.SulphurousSea 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.SulphurousSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A rare species of coral, one which is able to process and draw nutrients from the waters of the sulphurous sea. During this process, a large amount of volatile gas is formed.") + }); + } + public override void AI() { NPC.velocity.Y += 0.25f; diff --git a/NPCs/SulphurousSea/Catfish.cs b/NPCs/SulphurousSea/Catfish.cs index ef5ab5506d..763d23b7fb 100644 --- a/NPCs/SulphurousSea/Catfish.cs +++ b/NPCs/SulphurousSea/Catfish.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Placeables.Banners; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -38,6 +39,16 @@ namespace CalamityMod.NPCs.SulphurousSea NPC.Calamity().VulnerableToWater = false; } + 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("An animal which adapted to the toxic waters quite naturally. It uses its whiskers to find its way, and its prey in the murky depths.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/SulphurousSea/Flounder.cs b/NPCs/SulphurousSea/Flounder.cs index ace92c9e41..000eaa47ec 100644 --- a/NPCs/SulphurousSea/Flounder.cs +++ b/NPCs/SulphurousSea/Flounder.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Placeables.Banners; using CalamityMod.Items.Potions; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -38,6 +39,16 @@ namespace CalamityMod.NPCs.SulphurousSea NPC.Calamity().VulnerableToWater = false; } + 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("These creatures do not seek out their food, but rather wait for their meals to come to them. Watch your step if you venture down into the sulphurous sea.") + }); + } + public override void AI() { NPC.spriteDirection = (NPC.direction > 0) ? 1 : -1; diff --git a/NPCs/SulphurousSea/Gnasher.cs b/NPCs/SulphurousSea/Gnasher.cs index 07963d2a1e..85de7a0dd2 100644 --- a/NPCs/SulphurousSea/Gnasher.cs +++ b/NPCs/SulphurousSea/Gnasher.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Placeables.Banners; using CalamityMod.World; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; @@ -38,6 +39,16 @@ namespace CalamityMod.NPCs.SulphurousSea NPC.Calamity().VulnerableToWater = false; } + 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 turtle that has had its shell encrusted by the filth of the sulphurous sea. For an animal of its size, its jaws have a nearly unmatched biting strength.") + }); + } + public override void AI() { NPC.spriteDirection = (NPC.direction > 0) ? -1 : 1; diff --git a/NPCs/SulphurousSea/Trasher.cs b/NPCs/SulphurousSea/Trasher.cs index 12a5318822..95b2ea7af0 100644 --- a/NPCs/SulphurousSea/Trasher.cs +++ b/NPCs/SulphurousSea/Trasher.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; @@ -44,6 +45,16 @@ namespace CalamityMod.NPCs.SulphurousSea NPC.Calamity().VulnerableToWater = false; } + 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 huge alligator adapted to a life of scavenging in the sulphurous sea. They scrape morsels of food from the bottom with their massive jaws. But do not be mistaken. They will also prey on weak and feeble creatures.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(hasBeenHit); diff --git a/NPCs/SunkenSea/BlindedAngler.cs b/NPCs/SunkenSea/BlindedAngler.cs index 96fe18810d..34b00e46c9 100644 --- a/NPCs/SunkenSea/BlindedAngler.cs +++ b/NPCs/SunkenSea/BlindedAngler.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,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A species of angler which has lost any distinguishing feature on its head. Using primitive electroreception similar to sharks, it slowly and methodically hunts its prey.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/SunkenSea/Clam.cs b/NPCs/SunkenSea/Clam.cs index 4ae990f0f6..730a25b961 100644 --- a/NPCs/SunkenSea/Clam.cs +++ b/NPCs/SunkenSea/Clam.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Banners; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -45,6 +46,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Sluggish mollusks filter what they can from the brackish water. Their shells are as hard as stone but contain delicate, succulent flesh.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(hitAmount); diff --git a/NPCs/SunkenSea/EutrophicRay.cs b/NPCs/SunkenSea/EutrophicRay.cs index b873fa8dfa..c3f99ffbba 100644 --- a/NPCs/SunkenSea/EutrophicRay.cs +++ b/NPCs/SunkenSea/EutrophicRay.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,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("A stingray that spends much of its time docile on the rocky floors of the sunken sea’s pools. It stores its energy, and when endangered, can release it in short bursts of speed.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/SunkenSea/GhostBell.cs b/NPCs/SunkenSea/GhostBell.cs index 03a7fa9f60..629b408923 100644 --- a/NPCs/SunkenSea/GhostBell.cs +++ b/NPCs/SunkenSea/GhostBell.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; @@ -45,6 +46,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Ethereal jellyfish that drift in the still water of the sunken sea. Their bodies are curiously charged with an electric current.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/SunkenSea/GhostBellSmall.cs b/NPCs/SunkenSea/GhostBellSmall.cs index 2b2a485777..8fc012ef88 100644 --- a/NPCs/SunkenSea/GhostBellSmall.cs +++ b/NPCs/SunkenSea/GhostBellSmall.cs @@ -5,6 +5,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,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.catchItem = (short)ModContent.ItemType(); } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Like their adult counterparts, they shimmer gently, and would make great sources of light if the prisms around them didn’t already do so. Maybe if there was a way to bring one with you.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/SunkenSea/GiantClam.cs b/NPCs/SunkenSea/GiantClam.cs index 32f8ad0e93..f3a63aba38 100644 --- a/NPCs/SunkenSea/GiantClam.cs +++ b/NPCs/SunkenSea/GiantClam.cs @@ -15,6 +15,7 @@ using Microsoft.Xna.Framework.Graphics; using System; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -37,6 +38,7 @@ namespace CalamityMod.NPCs.SunkenSea { DisplayName.SetDefault("Giant Clam"); Main.npcFrameCount[NPC.type] = 12; + NPCID.Sets.BossBestiaryPriority.Add(Type); NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0) { Scale = 0.4f, @@ -70,6 +72,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("This oversized clam is large enough to entrap a person or two whole. Thankfully, it has only taken turf in the lowest regions of the sunken sea.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(hitAmount); diff --git a/NPCs/SunkenSea/PrismTurtle.cs b/NPCs/SunkenSea/PrismTurtle.cs index 2e186c41dc..a713ed5fec 100644 --- a/NPCs/SunkenSea/PrismTurtle.cs +++ b/NPCs/SunkenSea/PrismTurtle.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,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Rather slow swimmers, they are one of the few creatures that need to breach. They periodically swim to the upper layer of their habitat to lay their eggs.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/SunkenSea/SeaFloaty.cs b/NPCs/SunkenSea/SeaFloaty.cs index d9927f7071..555f88365e 100644 --- a/NPCs/SunkenSea/SeaFloaty.cs +++ b/NPCs/SunkenSea/SeaFloaty.cs @@ -1,6 +1,7 @@ using CalamityMod.Items.Placeables.Banners; using System.IO; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -34,6 +35,16 @@ namespace CalamityMod.NPCs.SunkenSea BannerItem = ModContent.ItemType(); } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("Strange but mesmerizing creatures, they hide immediately at the sight of any predator. They do not seem to be fully developed.") + }); + } + public override void SendExtraAI(BinaryWriter writer) { writer.Write(NPC.chaseable); diff --git a/NPCs/SunkenSea/SeaMinnow.cs b/NPCs/SunkenSea/SeaMinnow.cs index fbb005651c..75ad45e271 100644 --- a/NPCs/SunkenSea/SeaMinnow.cs +++ b/NPCs/SunkenSea/SeaMinnow.cs @@ -2,6 +2,7 @@ using CalamityMod.Items.Critters; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -35,6 +36,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.catchItem = (short)ModContent.ItemType(); } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("While they are at the bottom of the food chain, they also make up eighty percent of the biomass in this sea. They nibble away at corpses that fall from the underground desert above.") + }); + } + public override void AI() { CalamityAI.PassiveSwimmingAI(NPC, Mod, 3, 150f, 0.25f, 0.15f, 6f, 6f, 0.05f); diff --git a/NPCs/SunkenSea/SeaSerpent1.cs b/NPCs/SunkenSea/SeaSerpent1.cs index f7b0601fd7..418f659923 100644 --- a/NPCs/SunkenSea/SeaSerpent1.cs +++ b/NPCs/SunkenSea/SeaSerpent1.cs @@ -3,6 +3,7 @@ using CalamityMod.Items.Weapons.Magic; using Microsoft.Xna.Framework; using System; using Terraria; +using Terraria.GameContent.Bestiary; using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Utilities; @@ -45,6 +46,16 @@ namespace CalamityMod.NPCs.SunkenSea NPC.Calamity().VulnerableToWater = false; } + public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry) + { + bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { + //BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.SunkenSea, + + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("These eels are largely passive and drift languidly through the still waters of the sunken sea. Should you provoke them, they can be stubborn attackers.") + }); + } + public override void AI() { Lighting.AddLight(NPC.Center, (255 - NPC.alpha) * 0f / 255f, (255 - NPC.alpha) * 0.30f / 255f, (255 - NPC.alpha) * 0.30f / 255f); diff --git a/icon_small.png b/icon_small.png new file mode 100644 index 0000000000..ff9b7b787c Binary files /dev/null and b/icon_small.png differ