Plagued fuel pack tooltip updates to indicate the assigned key

This commit is contained in:
Amber Sienna committed 2020-02-07 20:06:28 +00:00
1 parent 8637df8de9
commit 5ae6783d13
1 file changed
+15
+15
View File
@@ -1,4 +1,5 @@
using CalamityMod.CalPlayer;
using System.Collections.Generic;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -31,5 +32,19 @@ namespace CalamityMod.Items.Accessories
player.Calamity().throwingVelocity += 0.15f;
player.Calamity().plaguedFuelPack = true;
}
public override void ModifyTooltips(List<TooltipLine> tooltips)
{
if (CalamityMod.PlaguePackHotKey.GetAssignedKeys().Count > 0)
{
foreach (TooltipLine line in tooltips)
{
if (line.mod == "Terraria" && line.Name == "Tooltip2")
{
line.text = "Press " + CalamityMod.PlaguePackHotKey.GetAssignedKeys()[0] + " to consume 25% of your maximum stealth to perform a swift upwards/diagonal dash which leaves a trail of plagued clouds";
}
}
}
}
}
}