From b1ee826fe80d4a42a1312045b7fec8c8c28f2578 Mon Sep 17 00:00:00 2001 From: kaycodes13 Date: Fri, 6 Feb 2026 16:32:00 -0500 Subject: [PATCH] patch the HUD to reflect custom bind costs --- Patches/HUD/ShowBindCostInHud.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Patches/HUD/ShowBindCostInHud.cs diff --git a/Patches/HUD/ShowBindCostInHud.cs b/Patches/HUD/ShowBindCostInHud.cs new file mode 100644 index 0000000..a1cd240 --- /dev/null +++ b/Patches/HUD/ShowBindCostInHud.cs @@ -0,0 +1,16 @@ +using HarmonyLib; +using Needleforge.Data; +using System.Linq; + +namespace Needleforge.Patches.HUD; + +[HarmonyPatch(typeof(SilkSpool), nameof(SilkSpool.BindCost), MethodType.Getter)] +internal static class ShowBindCostInHud +{ + private static void Postfix(ref float __result) + { + CrestData? crest = NeedleforgePlugin.newCrestData.FirstOrDefault(x => x.IsEquipped); + if (crest != null) + __result = crest.bindCost; + } +}