Please disclose if your mod was created primarily 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 Elmo Scrap v1.0.1
plugins/elmoDoll/elmoMod.dll
Decompiled 7 months agousing System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using LethalLib.Modules; 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("elmoMod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("elmoMod")] [assembly: AssemblyTitle("elmoMod")] [assembly: AssemblyVersion("1.0.0.0")] namespace ElmoMod; [BepInPlugin("nobrain98.elmoMod", "Elmo Mod", "1.0")] public class Plugin : BaseUnityPlugin { private const string GUID = "nobrain98.elmoMod"; private const string NAME = "Elmo Mod"; private const string VERSION = "1.0"; public static Plugin Instance; private void Awake() { Instance = this; string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "elmomod"); AssetBundle val = AssetBundle.LoadFromFile(text); Item val2 = val.LoadAsset<Item>("Assets/elmoDoll.asset"); NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab); Utilities.FixMixerGroups(val2.spawnPrefab); Items.RegisterScrap(val2, 30, (LevelTypes)(-1)); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded Elmo Doll Mod"); } }