using System;
using System.Collections.Generic;
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.Logging;
using Microsoft.CodeAnalysis;
using MonoMod.RuntimeDetour;
using NutKicker.NetcodePatcher;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: IgnoresAccessChecksTo("Assembly-CSharp")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("NutKicker")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyDescription("NutKicker for Lethal Company.")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("NutKicker")]
[assembly: AssemblyTitle("NutKicker")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
[module: NetcodePatchedAssembly]
internal class <Module>
{
static <Module>()
{
}
}
namespace Microsoft.CodeAnalysis
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
internal sealed class EmbeddedAttribute : Attribute
{
}
}
namespace System.Runtime.CompilerServices
{
[CompilerGenerated]
[Microsoft.CodeAnalysis.Embedded]
[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
internal sealed class RefSafetyRulesAttribute : Attribute
{
public readonly int Version;
public RefSafetyRulesAttribute(int P_0)
{
Version = P_0;
}
}
}
namespace NutKicker
{
internal class NutcrackerPatches
{
public static void NutcrackerStartPatch(Action<NutcrackerEnemyAI> orig, NutcrackerEnemyAI self)
{
orig(self);
((Component)self.gun).gameObject.SetActive(false);
}
public static void NutcrackerUpdatePatch(Action<NutcrackerEnemyAI> orig, NutcrackerEnemyAI self)
{
orig(self);
self.timeSinceFiringGun = 0f;
((EnemyAI)self).agent.speed = 7f;
}
}
[BepInPlugin("NutKicker", "NutKicker", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
internal static ManualLogSource Logger;
internal static List<Hook> MMHooks = new List<Hook>();
private void Awake()
{
//IL_0038: Unknown result type (might be due to invalid IL or missing references)
//IL_0042: Expected O, but got Unknown
//IL_006f: Unknown result type (might be due to invalid IL or missing references)
//IL_0079: Expected O, but got Unknown
Logger = ((BaseUnityPlugin)this).Logger;
MMHooks.Add(new Hook((MethodBase)typeof(NutcrackerEnemyAI).GetMethod("Start"), typeof(NutcrackerPatches).GetMethod("NutcrackerStartPatch")));
MMHooks.Add(new Hook((MethodBase)typeof(NutcrackerEnemyAI).GetMethod("Update"), typeof(NutcrackerPatches).GetMethod("NutcrackerUpdatePatch")));
Logger.LogInfo((object)"Plugin NutKicker is loaded!");
}
}
public static class PluginInfo
{
public const string PLUGIN_GUID = "NutKicker";
public const string PLUGIN_NAME = "NutKicker";
public const string PLUGIN_VERSION = "1.0.0";
}
}
namespace System.Runtime.CompilerServices
{
[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
internal sealed class IgnoresAccessChecksToAttribute : Attribute
{
public IgnoresAccessChecksToAttribute(string assemblyName)
{
}
}
}
namespace NutKicker.NetcodePatcher
{
[AttributeUsage(AttributeTargets.Module)]
internal class NetcodePatchedAssemblyAttribute : Attribute
{
}
}