Please disclose if your mod was created primarily 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 UsefulGnomes v1.0.0
plugins/UsefulGnomes.dll
Decompiled a year agousing 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 UnityEngine; using UsefulGnomes; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("UsefulGnomes")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("UsefulGnomes")] [assembly: AssemblyCopyright("Copyright © 2025")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("9b3be69d-46e3-4cb8-80fe-8b51f6352295")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] [HarmonyPatch(typeof(EnemyGnome), "UpdateState")] public class Patch_EnemyGnome_UpdateState { private static bool Prefix(EnemyGnome __instance, ref State _state) { if ((int)_state == 2 || (int)_state == 3 || (int)_state == 8 || (int)_state == 9 || (int)_state == 10) { _state = (State)4; } return true; } } [HarmonyPatch(typeof(EnemyGnome), "OnSpawn")] public class Patch_EnemyGnome_OnSpawn { private static void Postfix(EnemyGnome __instance) { //IL_0019: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)__instance != (Object)null) { UsefulGnomesPlugin.Logger.LogInfo((object)$">>> Gnome spawned at: {((Component)__instance).transform.position}"); } } } namespace UsefulGnomes; [BepInPlugin("com.purplehax.usefulgnomes", "Useful Gnomes", "1.0.0")] public class UsefulGnomesPlugin : BaseUnityPlugin { internal static ManualLogSource Logger; private void Awake() { //IL_001f: Unknown result type (might be due to invalid IL or missing references) Logger = ((BaseUnityPlugin)this).Logger; Logger.LogInfo((object)"Useful Gnomes loaded!"); new Harmony("com.purplehax.usefulgnomes").PatchAll(); } }