diff --git a/Items/Materials/YharonSoulFragment.cs b/Items/Materials/YharonSoulFragment.cs index 8f57f064b5..653e31f524 100644 --- a/Items/Materials/YharonSoulFragment.cs +++ b/Items/Materials/YharonSoulFragment.cs @@ -14,7 +14,7 @@ namespace CalamityMod.Items.Materials ItemID.Sets.ItemNoGravity[Item.type] = true; DisplayName.SetDefault("Yharon Soul Fragment"); - Tooltip.SetDefault("A shard of a godly soul"); + Tooltip.SetDefault("A shard of a draconic Auric Soul"); } public override void Update(ref float gravity, ref float maxFallSpeed) diff --git a/Items/SummonItems/JungleDragonEgg.cs b/Items/SummonItems/YharonEgg.cs similarity index 69% rename from Items/SummonItems/JungleDragonEgg.cs rename to Items/SummonItems/YharonEgg.cs index a7b937c6c1..89f1caf951 100644 --- a/Items/SummonItems/JungleDragonEgg.cs +++ b/Items/SummonItems/YharonEgg.cs @@ -9,18 +9,18 @@ using Terraria.ModLoader; namespace CalamityMod.Items.SummonItems { - [LegacyName("ChickenEgg")] - public class JungleDragonEgg : ModItem + [LegacyName("ChickenEgg", "JungleDragonEgg")] + public class YharonEgg : ModItem { public override void SetStaticDefaults() { SacrificeTotal = 1; - DisplayName.SetDefault("Jungle Dragon Egg"); - Tooltip.SetDefault("An imitation of the egg that bore the loyal guardian of the tyrant king\n" + - "Summons Jungle Dragon, Yharon when used in the Jungle\n" + + DisplayName.SetDefault("Blessed Phoenix Egg"); + Tooltip.SetDefault("An effigy of a Phoenix Dragon egg, used in worship\n" + + "Summons Yharon, Stalwart Defender\n" + "Enrages outside the fire walls\n" + "Not consumable"); - ItemID.Sets.SortingPriorityBossSpawns[Type] = 17; // Celestial Sigil + ItemID.Sets.SortingPriorityBossSpawns[Type] = 17; // Celestial Sigil } public override void SetDefaults() @@ -34,14 +34,14 @@ namespace CalamityMod.Items.SummonItems Item.rare = ModContent.RarityType(); } - public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) - { - itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossItem; - } + public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup) + { + itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossItem; + } public override bool CanUseItem(Player player) { - return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; + return !NPC.AnyNPCs(ModContent.NPCType()) && !BossRushEvent.BossRushActive; } public override bool? UseItem(Player player) diff --git a/Items/SummonItems/JungleDragonEgg.png b/Items/SummonItems/YharonEgg.png similarity index 100% rename from Items/SummonItems/JungleDragonEgg.png rename to Items/SummonItems/YharonEgg.png diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index e0354e2354..11b66329be 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -771,9 +771,9 @@ namespace CalamityMod { BossDifficulty.TryGetValue("Yharon", out float order); int type = NPCType(); - int summon = ItemType(); + int summon = ItemType(); List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; - string instructions = $"Use a [i:{summon}] in the Jungle Biome"; + string instructions = $"Use a [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("Yharon found you too weak to stay near your gravestone.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/Yharon/Yharon_Head_Boss"; AddBoss(bossChecklist, calamity, "Yharon", order, type, DownedYharon, summon, collection, instructions, despawn, () => true, null, bossLogTex); diff --git a/NPCs/Yharon/Yharon.cs b/NPCs/Yharon/Yharon.cs index 23541d98d0..6f9ef6055c 100644 --- a/NPCs/Yharon/Yharon.cs +++ b/NPCs/Yharon/Yharon.cs @@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.Yharon public override void SetStaticDefaults() { - DisplayName.SetDefault("Jungle Dragon, Yharon"); + DisplayName.SetDefault("Yharon, Stalwart Defender"); // phase 1 name Main.npcFrameCount[NPC.type] = 7; NPCID.Sets.TrailingMode[NPC.type] = 1; NPCID.Sets.BossBestiaryPriority.Add(Type); @@ -84,7 +84,7 @@ namespace CalamityMod.NPCs.Yharon value.Position.X += 26f; value.Position.Y -= 14f; NPCID.Sets.NPCBestiaryDrawOffset[Type] = value; - NPCID.Sets.MPAllowedEnemies[Type] = true; + NPCID.Sets.MPAllowedEnemies[Type] = true; } public override void SetDefaults() @@ -120,11 +120,17 @@ namespace CalamityMod.NPCs.Yharon bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] { BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Jungle, - // Will move to localization whenever that is cleaned up. - new FlavorTextBestiaryInfoElement("The loyal companion of the God-Hunter, they possess immense power compared to the Dragons of the past. This is likely partly due to fighting and training by their master's side.") + // Will move to localization whenever that is cleaned up. + new FlavorTextBestiaryInfoElement("The loyal companion of the God-Hunter, they possess immense power compared to the Dragons of the past. This is likely partly due to fighting and training by their master's side.") }); } + public override void ModifyTypeName(ref string typeName) + { + if (startSecondAI) + typeName = "Yharon, Resplendent Phoenix"; // phase 2 name + } + public override void SendExtraAI(BinaryWriter writer) { BitsByte bb = new BitsByte(); @@ -190,8 +196,8 @@ namespace CalamityMod.NPCs.Yharon float pie = (float)Math.PI; - CalamityGlobalNPC.yharon = NPC.whoAmI; - CalamityGlobalNPC.yharonP2 = -1; + CalamityGlobalNPC.yharon = NPC.whoAmI; + CalamityGlobalNPC.yharonP2 = -1; // Start phase 2 or not if (startSecondAI) @@ -1532,7 +1538,7 @@ namespace CalamityMod.NPCs.Yharon #region AI2 public void Yharon_AI2(bool expertMode, bool revenge, bool death, bool bossRush, float pie, float lifeRatio, CalamityGlobalNPC calamityGlobalNPC) { - CalamityGlobalNPC.yharonP2 = NPC.whoAmI; + CalamityGlobalNPC.yharonP2 = NPC.whoAmI; float phase2GateValue = revenge ? 0.44f : expertMode ? 0.385f : 0.275f; bool phase2 = death || lifeRatio <= phase2GateValue;