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 HunneyChuScrap v1.0.0
LCHunneyChuLoot.dll
Decompiled 2 years agousing System.Diagnostics; using System.IO; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; 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("LCHunneyChuLoot")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("LCHunneyChuLoot")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("5d2e8d32-3181-4d1e-80e0-b6d216a8aac1")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")] [assembly: AssemblyVersion("1.0.0.0")] namespace LCHunneyChuLoot; [BepInPlugin("HunneyChu.LootObjectMod", "HunneyChu as scrap", "1.0.0.0")] public class HunneyChuLoot : BaseUnityPlugin { private const string modGUID = "HunneyChu.LootObjectMod"; private const string modName = "HunneyChu as scrap"; private const string modVersion = "1.0.0.0"; private const string assetBundlePath = "Assets/LethalCompany/Scrap/HunneyChu/HunneyChuScrapItem.asset"; private readonly Harmony harmony = new Harmony("HunneyChu.LootObjectMod"); private static HunneyChuLoot Instance; internal ManualLogSource logSource; private void Awake() { //IL_008b: Unknown result type (might be due to invalid IL or missing references) //IL_00be: Unknown result type (might be due to invalid IL or missing references) if ((Object)(object)Instance == (Object)null) { Instance = this; } logSource = Logger.CreateLogSource("HunneyChu.LootObjectMod"); logSource.LogInfo((object)string.Format("MOD: Awakening {0}", "HunneyChu as scrap")); string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "hunneychuscrapitem"); AssetBundle val = AssetBundle.LoadFromFile(text); Item val2 = val.LoadAsset<Item>("Assets/LethalCompany/Scrap/HunneyChu/HunneyChuScrapItem.asset"); NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab); Utilities.FixMixerGroups(val2.spawnPrefab); LevelTypes val3 = (LevelTypes)(-1); int num = 69; int num2 = 0; TerminalNode val4 = ScriptableObject.CreateInstance<TerminalNode>(); val4.clearPreviousText = true; val4.displayText = "DA BIGGEST BIRD!!\n\n"; Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val4, num2); Items.RegisterScrap(val2, num, val3); logSource.LogInfo((object)string.Format("MOD: Patched {0}", "HunneyChu as scrap")); } }