From ff6ced6816d9f9d0546207c7665e8e0accd70e8f Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Fri, 31 Dec 2021 10:27:56 -0500 Subject: [PATCH] fixed betsy's wing tooltip --- Items/CalamityGlobalItemTooltip.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItemTooltip.cs b/Items/CalamityGlobalItemTooltip.cs index 0bc9e8b133..355fed3661 100644 --- a/Items/CalamityGlobalItemTooltip.cs +++ b/Items/CalamityGlobalItemTooltip.cs @@ -768,6 +768,7 @@ namespace CalamityMod.Items // This function is shorthand for appending a stat sheet to a pair of wings. void AddWingStats(float h, float a, int v, int f, string s = null) => EditTooltipByNum(0, (line) => line.text += WingStatsTooltip(h, a, v, f, s)); + void AddWingStats2(float h, float a, int v, int f, string s = null, string lineName = null) => EditTooltipByName(lineName, (line) => line.text += WingStatsTooltip(h, a, v, f, s)); if (item.type == ItemID.AngelWings) AddWingStats(6.25f, 1f, 0, 100, "+20 max life, +10 defense and +2 life regen"); @@ -872,8 +873,9 @@ namespace CalamityMod.Items AddWingStats(6.5f, 1.5f, 1, 160, "+20 max mana, 5% increased magic damage and critical strike chance,\n" + "and 5% decreased mana usage while wearing the Nebula Armor"); + // Betsy's Wings (and dev wings) are the only wings without "Allows flight and free fall" if (item.type == ItemID.BetsyWings) - AddWingStats(6f, 2.5f, 1, 150); + AddWingStats2(6f, 2.5f, 1, 150, null, "Equipable"); #endregion // Provide the full stats of every vanilla grappling hook