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 MenderbugsHaunting v1.0.0
MenderbugsHaunting.dll
Decompiled 5 months agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using GlobalEnums; using HarmonyLib; 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("MenderbugsHaunting")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MenderbugsHaunting")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("f62411ea-0cd7-4dbd-bdfb-72066201088a")] [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")] [BepInPlugin("com.chrismzz.menderbugshaunting", "Menderbug's Haunting", "1.0.0")] public class MenderbugsHaunting : BaseUnityPlugin { internal static ConfigEntry<int> damageOnBreak; private void Awake() { ((BaseUnityPlugin)this).Logger.LogInfo((object)"MenderbugsHaunting loaded and initialized."); damageOnBreak = ((BaseUnityPlugin)this).Config.Bind<int>("General", "Damage On Break", 100, "Amount of damage to deal to Hornet when she breaks something."); Harmony.CreateAndPatchAll(typeof(MenderbugsHaunting), (string)null); } [HarmonyPatch(typeof(Breakable), "Break")] [HarmonyPostfix] private static void Die() { HeroController.instance.TakeDamage((GameObject)null, (CollisionSide)3, damageOnBreak.Value, (HazardType)8, (DamagePropertyFlags)0); } }