More bestiary fixes

This commit is contained in:
Phupperbat committed 2022-06-03 22:58:37 -04:00
1 parent 7fe72c9f34
commit 2493a8d09f
2 files changed
+2 -26

No files matched your search

+1 -13
View File
@@ -6,7 +6,6 @@ using System;
using System.Collections.Generic;
using System.IO;
using Terraria;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
@@ -20,9 +19,9 @@ namespace CalamityMod.NPCs.SlimeGod
public override void SetStaticDefaults()
{
this.HideFromBestiary();
DisplayName.SetDefault("Ebonian Slime God");
Main.npcFrameCount[NPC.type] = 6;
NPCID.Sets.BossBestiaryPriority.Add(Type);
}
public override void SetDefaults()
@@ -49,17 +48,6 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.Calamity().VulnerableToSickness = false;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCorruption,
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCrimson,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Flanking their creator and serving as its body, these are concentrated, swirling masses of the world’s evils, each utilizing the rot and corrosion to eat away and assimilate those who oppose it")
});
}
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(NPC.localAI[1]);
+1 -13
View File
@@ -6,7 +6,6 @@ using System;
using System.Collections.Generic;
using System.IO;
using Terraria;
using Terraria.GameContent.Bestiary;
using Terraria.ID;
using Terraria.ModLoader;
using Terraria.Audio;
@@ -20,9 +19,9 @@ namespace CalamityMod.NPCs.SlimeGod
public override void SetStaticDefaults()
{
this.HideFromBestiary();
DisplayName.SetDefault("Crimulan Slime God");
Main.npcFrameCount[NPC.type] = 6;
NPCID.Sets.BossBestiaryPriority.Add(Type);
}
public override void SetDefaults()
@@ -52,17 +51,6 @@ namespace CalamityMod.NPCs.SlimeGod
NPC.Calamity().VulnerableToSickness = false;
}
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
{
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCorruption,
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheCrimson,
// Will move to localization whenever that is cleaned up.
new FlavorTextBestiaryInfoElement("Flanking their creator and serving as its body, these are concentrated, swirling masses of the world’s evils, each utilizing the rot and corrosion to eat away and assimilate those who oppose it")
});
}
public override void SendExtraAI(BinaryWriter writer)
{
writer.Write(NPC.localAI[1]);