using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using ShopkeeperNoWait.Patches;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("ShopkeeperNoWait")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ShopkeeperNoWait")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("a40d733d-95a1-4914-8f73-6ccaced738bd")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace ShopkeeperNoWait
{
[BepInPlugin("Sant.ShopkeeperWait", "Shopkeeper Wait Time", "1.0.0.0")]
public class ShopkeerNoWaitModBase : BaseUnityPlugin
{
private const string modGUID = "Sant.ShopkeeperWait";
private const string modName = "Shopkeeper Wait Time";
private const string modVersion = "1.0.0.0";
private readonly Harmony harmony = new Harmony("Sant.ShopkeeperWait");
private static ShopkeerNoWaitModBase Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("Sant.ShopkeeperWait");
mls.LogInfo((object)"The Shopkeepr wait mod has awaken :)");
harmony.PatchAll(typeof(ShopkeerNoWaitModBase));
harmony.PatchAll(typeof(ShopItemAcceptancePatch));
}
}
}
namespace ShopkeeperNoWait.Patches
{
[HarmonyPatch(typeof(DepositItemsDesk))]
internal class ShopItemAcceptancePatch
{
[HarmonyPatch("SetTimesHeardNoiseServerRpc")]
[HarmonyPostfix]
private static void noDelayPatch(ref float ___timesHearingNoise)
{
___timesHearingNoise = 8f;
}
}
}