19 lines
507 B
C#
19 lines
507 B
C#
namespace Harmony.XUiC_TraderWindowPatches
|
|
{
|
|
[HarmonyPatch(typeof(XUiC_TraderWindow))]
|
|
[HarmonyPatch("GetBindingValue")]
|
|
public class GetBindingValuePatch
|
|
{
|
|
public static void Postfix(XUiC_TraderWindow __instance, ref string value, string bindingName)
|
|
{
|
|
if (bindingName == "showrestock")
|
|
{
|
|
if (RebirthUtilities.ScenarioSkip())
|
|
{
|
|
value = "false";
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|