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 LCFartLizards v1.2.1
LCFartLizards.dll
Decompiled 2 years agousing System; using System.CodeDom.Compiler; using System.ComponentModel; using System.Diagnostics; using System.Globalization; using System.Reflection; using System.Resources; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; using HarmonyLib; using LCFartLizards.Properties; using Microsoft.CodeAnalysis; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("LCFartLizards")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Spore lizards fart instead")] [assembly: AssemblyFileVersion("1.2.1.0")] [assembly: AssemblyInformationalVersion("1.2.1+0e5b5b266cd12247451733a48a210dfba5fe1c79")] [assembly: AssemblyProduct("LCFartLizards")] [assembly: AssemblyTitle("LCFartLizards")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.2.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 LCFartLizards { [BepInPlugin("LCFartLizards", "LCFartLizards", "1.2.1")] public class Plugin : BaseUnityPlugin { [HarmonyPatch(typeof(PufferAI), "Start")] public static class PufferAIPatch { public static void Prefix(ref PufferAI __instance) { __instance.puff = audioClip; } } private Harmony harmony; public static AudioClip audioClip; public static bool audioClipLoaded; public void Awake() { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin LCFartLizards is loaded!"); harmony = new Harmony("LCFartLizards"); harmony.PatchAll(); LoadAudioClip(); } private void LoadAudioClip() { AssetBundle val = AssetBundle.LoadFromMemory(Resources.lcfartlizards); if ((Object)(object)val != (Object)null) { audioClip = val.LoadAsset<AudioClip>("Assets/LizardSound.mp3"); if ((Object)(object)audioClip != (Object)null) { audioClipLoaded = true; ((BaseUnityPlugin)this).Logger.LogInfo((object)"Audio clip loaded successfully!"); } else { ((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load audio clip!"); } } else { ((BaseUnityPlugin)this).Logger.LogError((object)"Failed to load asset bundle!"); } } } public static class PluginInfo { public const string PLUGIN_GUID = "LCFartLizards"; public const string PLUGIN_NAME = "LCFartLizards"; public const string PLUGIN_VERSION = "1.2.1"; } } namespace LCFartLizards.Properties { [GeneratedCode("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [DebuggerNonUserCode] [CompilerGenerated] public class Resources { private static ResourceManager resourceMan; private static CultureInfo resourceCulture; [EditorBrowsable(EditorBrowsableState.Advanced)] public static ResourceManager ResourceManager { get { if (resourceMan == null) { ResourceManager resourceManager = new ResourceManager("LCFartLizards.Properties.Resources", typeof(Resources).Assembly); resourceMan = resourceManager; } return resourceMan; } } [EditorBrowsable(EditorBrowsableState.Advanced)] public static CultureInfo Culture { get { return resourceCulture; } set { resourceCulture = value; } } public static byte[] lcfartlizards { get { object @object = ResourceManager.GetObject("lcfartlizards", resourceCulture); return (byte[])@object; } } internal Resources() { } } }