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 MaximumSCRAP v1.0.5
MaximumSCRAP.dll
Decompiled 3 months agousing System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; 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: AssemblyTitle("MaximumSCRAP")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("MaximumSCRAP")] [assembly: AssemblyCopyright("Copyright © 2026")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c0c0f34f-17c7-4d08-bd59-7b3de393781a")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace MaximumSCRAP; [BepInPlugin("maxxvr.MaximumScrap", "Maximum SCRAP", "0.0.1")] public class Plugin : BaseUnityPlugin { private const string GUID = "maxxvr.MaximumScrap"; private const string NAME = "Maximum SCRAP"; private const string VERSION = "0.0.1"; public static Plugin instance; private void Awake() { instance = this; string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "maximumscrap"); AssetBundle val = AssetBundle.LoadFromFile(text); string[] array = new string[7] { "Assets/Scrap/Mimicry/Mimicry.asset", "Assets/Scrap/Vending Machine/Vending Machine.asset", "Assets/Scrap/Doritos/Doritos.asset", "Assets/Scrap/Cutout/Cutout.asset", "Assets/Scrap/Stool/Stool.asset", "Assets/Scrap/Coffin/Coffin.asset", "Assets/Scrap/Pipe/Rusty pipe.asset" }; int[] array2 = new int[7] { 20, 10, 40, 30, 60, 25, 50 }; for (int i = 0; i < array.Length; i++) { Item val2 = val.LoadAsset<Item>(array[i]); if ((Object)(object)val2 != (Object)null) { NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab); Utilities.FixMixerGroups(val2.spawnPrefab); Items.RegisterScrap(val2, array2[i], (LevelTypes)(-1)); } else { ((BaseUnityPlugin)this).Logger.LogWarning((object)("Failed to load Item at path: " + array[i])); } } ((BaseUnityPlugin)this).Logger.LogInfo((object)"Maximum SCRAP has successfully loaded!"); } }