1 - Renamed Yharon to his new lore titles: "Yharon, Stalwart Defender" (P1) and "Yharon, Resplendent Phoenix" (P2)
2 - Renamed Yharon's summon item to Blessed Phoenix Egg and changed the tooltip 3 - Yharon can now be summoned anywhere. 4 - Fixed tooltip of Yharon Soul Fragments to be accurate to the new lore.
This commit is contained in:
1 parent
3ad26c01d5
commit
eee3e11707
5 files changed
+27
-21
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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<DarkBlue>();
|
||||
}
|
||||
|
||||
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<Yharon>()) && !BossRushEvent.BossRushActive;
|
||||
return !NPC.AnyNPCs(ModContent.NPCType<Yharon>()) && !BossRushEvent.BossRushActive;
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
File renamed without changes.
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
@@ -771,9 +771,9 @@ namespace CalamityMod
|
||||
{
|
||||
BossDifficulty.TryGetValue("Yharon", out float order);
|
||||
int type = NPCType<Yharon>();
|
||||
int summon = ItemType<JungleDragonEgg>();
|
||||
int summon = ItemType<YharonEgg>();
|
||||
List<int> collection = new List<int>() { ItemType<YharonTrophy>(), ItemType<YharonMask>(), ItemType<LoreYharon>(), ItemType<ForgottenDragonEgg>(), ItemType<McNuggets>(), ItemType<FoxDrive>(), ItemType<ThankYouPainting>() };
|
||||
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);
|
||||
|
||||
+13
-7
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user