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; + } +}