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 AcidsDagger v1.0.1
BepInEx/plugins/DaggerItemLC.dll
Decompiled 3 hours agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using GameNetcodeStuff; using HarmonyLib; using LethalLib.Modules; 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("DaggerItemLC")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("DaggerItemLC")] [assembly: AssemblyTitle("DaggerItemLC")] [assembly: AssemblyVersion("1.0.0.0")] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)] internal sealed class NullableAttribute : Attribute { public readonly byte[] NullableFlags; public NullableAttribute(byte P_0) { NullableFlags = new byte[1] { P_0 }; } public NullableAttribute(byte[] P_0) { NullableFlags = P_0; } } [CompilerGenerated] [Embedded] [AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)] internal sealed class NullableContextAttribute : Attribute { public readonly byte Flag; public NullableContextAttribute(byte P_0) { Flag = P_0; } } } namespace LethalCompanyMod { [BepInPlugin("com.acid.AcidsItems", "AcidsItems", "1.0.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { internal static ManualLogSource Log; private Harmony harmony; private AssetBundle bundle; public static Plugin instance; private void Awake() { //IL_0018: Unknown result type (might be due to invalid IL or missing references) //IL_0022: Expected O, but got Unknown instance = this; Log = ((BaseUnityPlugin)this).Logger; harmony = new Harmony("com.acid.AcidsItems"); harmony.PatchAll(); string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "itemsmod"); bundle = AssetBundle.LoadFromFile(text); if ((Object)(object)bundle == (Object)null) { Log.LogError((object)("Failed to load AssetBundle: " + text)); return; } Item val = bundle.LoadAsset<Item>("Assets/Dagger/Dagger.asset"); if ((Object)(object)val == (Object)null) { Log.LogError((object)("Could not load Item asset 'Assets/Dagger/Dagger.asset'. Bundle assets: " + string.Join(", ", bundle.GetAllAssetNames()))); return; } if ((Object)(object)val.spawnPrefab == (Object)null) { Log.LogError((object)"The Item asset 'Assets/Dagger/Dagger.asset' has no spawn prefab."); return; } Utilities.FixMixerGroups(val.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab); Items.RegisterScrap(val, 25, (LevelTypes)(-1)); TerminalNode val2 = ScriptableObject.CreateInstance<TerminalNode>(); ((Object)val2).name = "DaggerInfoNode"; val2.clearPreviousText = true; val2.displayText = "This is info about the dagger.\n\n"; val2.maxCharactersToType = 25; Items.RegisterShopItem(val, (TerminalNode)null, (TerminalNode)null, val2, 0); Log.LogInfo((object)"AcidsItems loaded and registered the dagger."); } private void OnDestroy() { Harmony obj = harmony; if (obj != null) { obj.UnpatchSelf(); } } } internal static class MyPluginInfo { public const string PLUGIN_GUID = "com.acid.AcidsItems"; public const string PLUGIN_NAME = "AcidsItems"; public const string PLUGIN_VERSION = "1.0.0"; } } namespace DaggerItemLC.Patches { internal class PlayerControllerBPatches { [HarmonyPatch(typeof(PlayerControllerB), "Update")] [HarmonyPostfix] private static void InfiniteStamina(PlayerControllerB __instance) { } } }