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 ABadBaguette v4.2.0
ABadBaguette.dll
Decompiled 10 months agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using Jotunn; using Jotunn.Configs; using Jotunn.Entities; using Jotunn.Managers; using Jotunn.Utils; 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("ABadBaguette")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("ABadBaguette")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("c68602f6-609c-4ac8-814d-759894cbbd4c")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace ABadBaguette; [BepInPlugin("TheRonTron.BadBaguette", "ABadBaguette", "4.2.0")] [BepInDependency(/*Could not decode attribute arguments.*/)] internal class ABadBaguette : BaseUnityPlugin { private AssetBundle BadBaguette; public void Awake() { //IL_006b: Unknown result type (might be due to invalid IL or missing references) //IL_0071: Expected O, but got Unknown //IL_0071: Unknown result type (might be due to invalid IL or missing references) //IL_0077: Expected O, but got Unknown //IL_0083: Unknown result type (might be due to invalid IL or missing references) //IL_008d: Expected O, but got Unknown //IL_009a: Unknown result type (might be due to invalid IL or missing references) //IL_00a4: Expected O, but got Unknown //IL_00db: Unknown result type (might be due to invalid IL or missing references) //IL_00e5: Expected O, but got Unknown //IL_00ee: Unknown result type (might be due to invalid IL or missing references) //IL_00f8: Expected O, but got Unknown Logger.ShowDate = true; Game.isModded = true; Logger.LogInfo((object)("Embedded resources: " + string.Join(",", typeof(ABadBaguette).Assembly.GetManifestResourceNames()))); BadBaguette = AssetUtils.LoadAssetBundleFromResources("badbaguette", typeof(ABadBaguette).Assembly); GameObject val = BadBaguette.LoadAsset<GameObject>("BadBaguette"); ItemConfig val2 = new ItemConfig(); IncineratorConversionConfig val3 = new IncineratorConversionConfig(); val3.Requirements.Add(new IncineratorRequirementConfig("BreadDough", 1)); val3.Requirements.Add(new IncineratorRequirementConfig("SwordBronze", 1)); ((ConversionConfig)val3).ToItem = "BadBaguette"; ((ConversionConfig)val3).Station = Incinerators.Incinerator; val3.ProducedItems = 1; val3.RequireOnlyOneIngredient = false; val3.Priority = 5; ItemManager.Instance.AddItemConversion(new CustomItemConversion((ConversionConfig)(object)val3)); ItemManager.Instance.AddItem(new CustomItem(val, true, val2)); BadBaguette.Unload(false); } }