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 CZEMU v1.0.3
CZEMU.dll
Decompiled 2 years agousing System; using System.Collections.Generic; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using BepInEx.Logging; using HarmonyLib; using Microsoft.CodeAnalysis; using MyFirstPlugin.Patches; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("CZEMU")] [assembly: AssemblyConfiguration("Release")] [assembly: AssemblyDescription("friend did a funny thing with that voice so yeah, its only voice of mine saying CZEMU")] [assembly: AssemblyFileVersion("1.0.1.0")] [assembly: AssemblyInformationalVersion("1.0.1")] [assembly: AssemblyProduct("CZEMU")] [assembly: AssemblyTitle("CZEMU")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.1.0")] [module: UnverifiableCode] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace MyFirstPlugin { [BepInPlugin("CZEMU", "CZEMU", "1.0.1")] public class Plugin : BaseUnityPlugin { private const string PLUGIN_GUID = "177unneh.CZEMU"; private const string PLUGIN_NAME = "177unneh.CZEMU"; private const string PLUGIN_VERSION = "1.0.1"; private readonly Harmony harmony = new Harmony("177unneh.CZEMU"); private static Plugin Instance; internal ManualLogSource mls; internal static List<AudioClip> soundFX; internal static List<AudioClip> soundFX1; internal static AssetBundle Bundle; internal static AssetBundle Bundle1; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("177unneh.CZEMU"); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin CZEMU is loaded! SO CZEMU! CZEMU KABOOM! HAHA FYUNNY KABOOMHAHAHHA"); harmony.PatchAll(typeof(Plugin)); harmony.PatchAll(typeof(MineExplosion)); mls.LogInfo((object)"THIS, IS THE F*CKING TEST!!!"); mls.LogInfo((object)"This test ^^^ its bad!!!"); mls.LogInfo((object)"nvm time to add the sound do you?"); mls.LogInfo((object)"yeah!!!"); soundFX = new List<AudioClip>(); Bundle = AssetBundle.LoadFromFile(((BaseUnityPlugin)Instance).Info.Location.TrimEnd("CZEMU.dll".ToCharArray()) + "czemu"); mls.LogInfo((object)((object)Bundle).ToString()); if ((Object)(object)Bundle != (Object)null) { mls.LogInfo((object)"you like kissing boys dont you?"); soundFX = Bundle.LoadAllAssets<AudioClip>().ToList(); mls.LogInfo((object)"anyway loaded the bundle jippi!"); } else { mls.LogError((object)"ABORT! THE SYSTEM FAILED!!! ABORT ALL GAME!"); } } } public static class PluginInfo { public const string PLUGIN_GUID = "CZEMU"; public const string PLUGIN_NAME = "CZEMU"; public const string PLUGIN_VERSION = "1.0.1"; } } namespace MyFirstPlugin.Patches { [HarmonyPatch(typeof(Landmine))] internal class MineExplosion { [HarmonyPatch("Start")] [HarmonyPostfix] private static void OverrideAudio(Landmine __instance) { __instance.mineTrigger = Plugin.soundFX[0]; } } }