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 CheekiiPlushies v1.0.5
CheekiiPlushies.dll
Decompiled 2 years agousing 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 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 = "")] [assembly: AssemblyCompany("CheekiiPlushies")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyDescription("Plushies by Cheekii!")] [assembly: AssemblyFileVersion("1.0.5.0")] [assembly: AssemblyInformationalVersion("1.0.5")] [assembly: AssemblyProduct("CheekiiPlushies")] [assembly: AssemblyTitle("CheekiiPlushies")] [assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)] [assembly: AssemblyVersion("1.0.5.0")] [module: UnverifiableCode] namespace PlushCheekii; [BepInPlugin("CheekiiPlushies", "CheekiiPlushies", "1.0.5")] public class Plugin : BaseUnityPlugin { public static Plugin instance; private void AddScrapItem(AssetBundle bundle, string path, string desc = "", bool addToShop = false) { Item val = bundle.LoadAsset<Item>(path); NetworkPrefabs.RegisterNetworkPrefab(val.spawnPrefab); Utilities.FixMixerGroups(val.spawnPrefab); Items.RegisterScrap(val, 20, (LevelTypes)(-1)); if (addToShop) { TerminalNode val2 = ScriptableObject.CreateInstance<TerminalNode>(); val2.clearPreviousText = true; val2.displayText = desc; Items.RegisterShopItem(val, (TerminalNode)null, (TerminalNode)null, val2, 0); } } private void Awake() { instance = this; string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "cheekiiplushies"); string text2 = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "cheekiiplushes2"); AssetBundle bundle = AssetBundle.LoadFromFile(text); AssetBundle bundle2 = AssetBundle.LoadFromFile(text2); AddScrapItem(bundle, "Assets/Plushes/itempierogi.asset"); AddScrapItem(bundle, "Assets/Plushes/itemchess.asset"); AddScrapItem(bundle, "Assets/Plushes/itemkaka.asset"); AddScrapItem(bundle2, "Assets/Prefabs/item_frank.asset"); AddScrapItem(bundle2, "Assets/Prefabs/item_cheekii.asset"); AddScrapItem(bundle2, "Assets/Prefabs/item_robo.asset"); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin CheekiiPlushies is loaded!"); } } public static class PluginInfo { public const string PLUGIN_GUID = "CheekiiPlushies"; public const string PLUGIN_NAME = "CheekiiPlushies"; public const string PLUGIN_VERSION = "1.0.5"; }