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 SimpNationSoundsMod v0.1.0
SimpSound/SimpNationSoundsMod.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using SimpNationLootBugSoundsMod; using SimpNationSoundsMod.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("SimpNationSoundsMod")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("SimpNationSoundsMod")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("afd290df-beba-49e1-9d38-ee10d1daaeaf")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace SimpNationLootBugSoundsMod { [BepInPlugin("SimpNationLootBug", "SimpNationLootBug", "0.1.0")] public class SimpNationLootBug : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("SimpNationLootBug"); private static SimpNationLootBug Instance; internal static AudioClip[] newAudio; private void Awake() { //IL_0006: Unknown result type (might be due to invalid IL or missing references) //IL_0011: Expected O, but got Unknown //IL_0065: Unknown result type (might be due to invalid IL or missing references) //IL_0070: Expected O, but got Unknown if ((Object)Instance == (Object)null) { Instance = this; } ((BaseUnityPlugin)this).Logger.LogInfo((object)"SimpNationLootBug is loading. Give me your scrap."); string location = ((BaseUnityPlugin)Instance).Info.Location; string text = "SimpNationSoundsMod.dll"; string text2 = location.TrimEnd(text.ToCharArray()); AssetBundle val = AssetBundle.LoadFromFile(text2 + "sound"); if ((Object)val == (Object)null) { ((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load audio assets!"); return; } newAudio = val.LoadAssetWithSubAssets<AudioClip>("Assets/f-off.mp3"); harmony.PatchAll(typeof(LootBugPatch)); ((BaseUnityPlugin)this).Logger.LogInfo((object)"SimpNationLootBug is loaded. NOW LOCK TF IN."); } } } namespace SimpNationSoundsMod.Patches { [HarmonyPatch(typeof(HoarderBugAI))] internal class LootBugPatch { [HarmonyPatch("Start")] [HarmonyPostfix] public static void lootBugSoundPatch(ref AudioClip[] ___chitterSFX) { ___chitterSFX = SimpNationLootBug.newAudio; } } }