Upload from upload_mods.ps1
This commit is contained in:
18
Harmony/Harmony_XUiC_TraderWindow.cs
Normal file
18
Harmony/Harmony_XUiC_TraderWindow.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
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";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user