From fe0066f1899d179df3f8f4e9283ad542425ce419 Mon Sep 17 00:00:00 2001 From: Ozzatron Date: Sun, 22 Jan 2023 17:58:32 -0500 Subject: [PATCH] Implemented Yharon's lore --- Items/LoreItems/LoreItem.cs | 9 ++++----- Items/LoreItems/LoreYharon.cs | 16 +++++++++++++++- 2 files changed, 19 insertions(+), 6 deletions(-) diff --git a/Items/LoreItems/LoreItem.cs b/Items/LoreItems/LoreItem.cs index 5307e9f34a..aa9aed1d53 100644 --- a/Items/LoreItems/LoreItem.cs +++ b/Items/LoreItems/LoreItem.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.LoreItems // This string contains the actual lore of the lore item public virtual string Lore => ""; // By default, lore text appears in white, but this can be changed. - public virtual Color LoreColor => Color.White; + public virtual Color? LoreColor => null; public override void SetStaticDefaults() { @@ -68,10 +68,9 @@ namespace CalamityMod.Items.LoreItems tooltips.RemoveRange(tooltipIndex, tooltipCount); // Replace them with the full lore. - TooltipLine fullLore = new(Mod, "CalamityMod:Lore", Lore) - { - OverrideColor = LoreColor - }; + TooltipLine fullLore = new(Mod, "CalamityMod:Lore", Lore); + if (LoreColor.HasValue) + fullLore.OverrideColor = LoreColor.Value; tooltips.Insert(tooltipIndex, fullLore); } } diff --git a/Items/LoreItems/LoreYharon.cs b/Items/LoreItems/LoreYharon.cs index a8181ee88b..a6e6a89b8a 100644 --- a/Items/LoreItems/LoreYharon.cs +++ b/Items/LoreItems/LoreYharon.cs @@ -9,7 +9,21 @@ namespace CalamityMod.Items.LoreItems [LegacyName("KnowledgeYharon")] public class LoreYharon : LoreItem { - public override string Lore => "This lore item isn't finished yet."; + public override string Lore => +@"The return of the Age of Dragons, dashed. Just like that, it is but ashes in the wind… +Yharon was the last of the Auric Dragons. As a phoenix, his domain of power includes rebirth. +The Gods thought him culled with the rest of his kind, but he returned as an egg, hidden on the Aerie. +I was destined to consume his Auric soul when he hatched, and rule forever as God-King. + +[c/FCA92B:Destiny is for the weak.] + +I rejected their whims, and upended their scheme. I was sentenced to execution for treason. +Their meek, ingratiated swine cast both Yharon’s egg and I into the magma of Hell. +The intense heat hideously scarred me, but birthed Yharon anew. He rose, wreathed in fire, and saved my life. +From that day, our souls were one. He shared with me the tale of Zeratros, and the genocide of his kind. +I promised him I would have justice. So the war began, Yharon rallying all as a beacon of hope. +Now, that hope is long withered. I am but a husk of the hero I once was, and this is the ultimate proof. +Yharon may yet return, as he does, but he… he has bade me farewell."; public override void SetStaticDefaults() {