Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of SpringManKamekaze v1.0.0
SpringManKamekaze.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(/*Could not decode attribute arguments.*/)] [assembly: TargetFramework(".NETCoreApp,Version=v7.0", FrameworkDisplayName = ".NET 7.0")] [assembly: AssemblyCompany("SpringManKamekaze")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0+41a4edf9169bf15221389d4da362693872ed7e00")] [assembly: AssemblyProduct("SpringManKamekaze")] [assembly: AssemblyTitle("SpringManKamekaze")] [assembly: AssemblyVersion("1.0.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : System.Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(/*Could not decode attribute arguments.*/)] internal sealed class NullableAttribute : System.Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(/*Could not decode attribute arguments.*/)] internal sealed class NullableContextAttribute : System.Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(/*Could not decode attribute arguments.*/)] internal sealed class RefSafetyRulesAttribute : System.Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace SpringManKamekaze { [BepInPlugin("coolcat0.LC_SpringManKamekaze", "LC_SpringManKamekaze", "1.0.0")] public class SpringManKamekazeBase : BaseUnityPlugin { private const string modGUID = "coolcat0.LC_SpringManKamekaze"; private const string modName = "LC_SpringManKamekaze"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("coolcat0.LC_SpringManKamekaze"); private static SpringManKamekazeBase Instance; public static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("coolcat0.LC_SpringManKamekaze"); mls.LogInfo((object)"LC_SpringManKamekaze version 1.0.0 has been loaded"); harmony.PatchAll(typeof(SpringManKamekazeBase)); harmony.PatchAll(typeof(SpringManAIPatch)); } } [HarmonyPatch(typeof(SpringManAI))] internal class SpringManAIPatch { [HarmonyPatch("OnCollideWithPlayer")] [HarmonyPostfix] private static void SelfDestructSpringMan(SpringManAI __instance) { //IL_0007: Unknown result type (might be due to invalid IL or missing references) Landmine.SpawnExplosion(((Component)__instance).transform.position, true, 1f, 1f); ((EnemyAI)__instance).KillEnemy(true); } } }