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 Im Walking Here Mod v1.1.0
ImWalkingHereMod.dll
Decompiled 2 years agousing System.Collections.Generic; using 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 ImWalkingHereMod.Patches; 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("ImWalkingHereMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ImWalkingHereMod")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("d39407f9-fae1-4699-abe5-fa5b4bb9ea47")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace ImWalkingHereMod { [BepInPlugin("LegoStego.ImWalkingHereMod", "Im Walking Here Mod", "1.0.0")] public class ImWalkingHereBase : BaseUnityPlugin { private const string modGUID = "LegoStego.ImWalkingHereMod"; private const string modName = "Im Walking Here Mod"; private const string modVersion = "1.0.0"; private readonly Harmony harmony = new Harmony("LegoStego.ImWalkingHereMod"); private static ImWalkingHereBase Instance; internal ManualLogSource mls; internal static List<AudioClip> SoundFX; internal static AssetBundle Bundle; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("LegoStego.ImWalkingHereMod"); mls.LogInfo((object)"The ImWalkingHereMod has awaken"); harmony.PatchAll(typeof(ChitterSFXPatch)); mls = ((BaseUnityPlugin)this).Logger; SoundFX = new List<AudioClip>(); string location = ((BaseUnityPlugin)Instance).Info.Location; location = location.TrimEnd("ImWalkingHereMod.dll".ToCharArray()); Bundle = AssetBundle.LoadFromFile(location + "imwalkinghere"); if ((Object)(object)Bundle != (Object)null) { SoundFX.AddRange(Bundle.LoadAllAssets<AudioClip>()); mls.LogInfo((object)"Successfully loaded asset bundle"); } else { mls.LogError((object)"Failed to load asset bundle"); } Bundle = AssetBundle.LoadFromFile(location + "imwalkingherealone"); if ((Object)(object)Bundle != (Object)null) { SoundFX.AddRange(Bundle.LoadAllAssets<AudioClip>()); mls.LogInfo((object)"Successfully loaded asset bundle"); } else { mls.LogError((object)"Failed to load asset bundle"); } Bundle = AssetBundle.LoadFromFile(location + "whatdoyouwant"); if ((Object)(object)Bundle != (Object)null) { SoundFX.AddRange(Bundle.LoadAllAssets<AudioClip>()); mls.LogInfo((object)"Successfully loaded asset bundle"); } else { mls.LogError((object)"Failed to load asset bundle"); } } } } namespace ImWalkingHereMod.Patches { [HarmonyPatch(typeof(HoarderBugAI))] internal class ChitterSFXPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(HoarderBugAI __instance) { __instance.chitterSFX = ImWalkingHereBase.SoundFX.ToArray(); } } }