using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using BepInEx.Core.Logging.Interpolation;
using BepInEx.Logging;
using BepInEx.Unity.IL2CPP;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETCoreApp,Version=v6.0", FrameworkDisplayName = "")]
[assembly: AssemblyCompany("NoCustomerLimit")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NoCustomerLimit")]
[assembly: AssemblyTitle("NoCustomerLimit")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
namespace NoCustomerLimit;
[BepInPlugin("com.nocustomerlimit.roadsideresearch", "NoCustomerLimit", "1.0.0")]
public class Plugin : BasePlugin
{
public const string GUID = "com.nocustomerlimit.roadsideresearch";
public const string Name = "NoCustomerLimit";
public const string Version = "1.0.0";
internal static ManualLogSource Log;
public override void Load()
{
//IL_0014: Unknown result type (might be due to invalid IL or missing references)
//IL_001a: Expected O, but got Unknown
//IL_003e: Unknown result type (might be due to invalid IL or missing references)
Log = ((BasePlugin)this).Log;
ManualLogSource log = Log;
bool flag = default(bool);
BepInExInfoLogInterpolatedStringHandler val = new BepInExInfoLogInterpolatedStringHandler(8, 1, ref flag);
if (flag)
{
((BepInExLogInterpolatedStringHandler)val).AppendFormatted<string>("NoCustomerLimit");
((BepInExLogInterpolatedStringHandler)val).AppendLiteral(" loaded!");
}
log.LogInfo(val);
new Harmony("com.nocustomerlimit.roadsideresearch").PatchAll(typeof(CustomerSpawnPatch));
Log.LogInfo((object)"Customer spawn limit removed");
}
}
[HarmonyPatch]
public static class CustomerSpawnPatch
{
[HarmonyPatch(/*Could not decode attribute arguments.*/)]
[HarmonyPostfix]
public static void CanSpawnNpc_Postfix(ref bool __result)
{
__result = true;
}
}