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 Sonic Scrap Pack v1.1.0
BepInEx/plugins/SonicScrapPack.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using System.Security; using System.Security.Permissions; using BepInEx; 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("SonicScrapPack")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Sonic themed scraps")] [assembly: AssemblyFileVersion("1.1.0.0")] [assembly: AssemblyInformationalVersion("1.1.0")] [assembly: AssemblyProduct("SonicScrapPack")] [assembly: AssemblyTitle("SonicScrapPack")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.1.0.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 LethalCompanyTemplate { public static class PluginInfo { public const string PLUGIN_GUID = "SonicScrapPack"; public const string PLUGIN_NAME = "SonicScrapPack"; public const string PLUGIN_VERSION = "1.1.0"; } } namespace SonicScrapPack { [BepInPlugin("squid.sonicscrappack", "Sonic_Scrap_Pack", "1.1.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] public class Plugin : BaseUnityPlugin { private const string GUID = "squid.sonicscrappack"; private const string NAME = "Sonic_Scrap_Pack"; private const string VERSION = "1.1.0"; public static Plugin instance; private void Awake() { instance = this; string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "sonicscrappack"); AssetBundle val = AssetBundle.LoadFromFile(text); Item val2 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Froggy/FroggyItem.asset"); Utilities.FixMixerGroups(val2.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab); Items.RegisterScrap(val2, 30, (LevelTypes)(-1)); Item val3 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Sonic Superstars/SuperstarsScrap.asset"); Utilities.FixMixerGroups(val3.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab); Items.RegisterScrap(val3, 36, (LevelTypes)(-1)); Item val4 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Chaos Drive/DriveScrap.asset"); Utilities.FixMixerGroups(val4.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab); Items.RegisterScrap(val4, 38, (LevelTypes)(-1)); Item val5 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Chaos Emerald/EmeraldScrap.asset"); Utilities.FixMixerGroups(val5.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab); Items.RegisterScrap(val5, 28, (LevelTypes)(-1)); Item val6 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Ring/RingScrap.asset"); Utilities.FixMixerGroups(val6.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab); Items.RegisterScrap(val6, 40, (LevelTypes)(-1)); Item val7 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Amy Duck/AmyDuckScrap.asset"); Utilities.FixMixerGroups(val7.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val7.spawnPrefab); Items.RegisterScrap(val7, 36, (LevelTypes)(-1)); Item val8 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Sonic Duck/SonicDuckScrap.asset"); Utilities.FixMixerGroups(val8.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val8.spawnPrefab); Items.RegisterScrap(val8, 36, (LevelTypes)(-1)); Item val9 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Precious Stone/StoneScrap.asset"); Utilities.FixMixerGroups(val9.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val9.spawnPrefab); Items.RegisterScrap(val9, 28, (LevelTypes)(-1)); Item val10 = val.LoadAsset<Item>("Assets/Mods/Sonic Scrap Pack/Force Jewel/JewelScrap.asset"); Utilities.FixMixerGroups(val10.spawnPrefab); NetworkPrefabs.RegisterNetworkPrefab(val10.spawnPrefab); Items.RegisterScrap(val10, 34, (LevelTypes)(-1)); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Sonic Scraps are now loaded :3"); } } }