Decompiled source of BananaBread v0.1.2

BepInEx/plugins/BananaBread/BananaBread.dll

Decompiled 10 months ago
using System;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
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("BananaBread")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("BananaBread")]
[assembly: AssemblyTitle("BananaBread")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Property | AttributeTargets.Field | AttributeTargets.Event | AttributeTargets.Parameter | AttributeTargets.ReturnValue | AttributeTargets.GenericParameter, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableAttribute : Attribute
	{
		public readonly byte[] NullableFlags;

		public NullableAttribute(byte P_0)
		{
			NullableFlags = new byte[1] { P_0 };
		}

		public NullableAttribute(byte[] P_0)
		{
			NullableFlags = P_0;
		}
	}
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Class | AttributeTargets.Struct | AttributeTargets.Method | AttributeTargets.Interface | AttributeTargets.Delegate, AllowMultiple = false, Inherited = false)]
	internal sealed class NullableContextAttribute : Attribute
	{
		public readonly byte Flag;

		public NullableContextAttribute(byte P_0)
		{
			Flag = P_0;
		}
	}
}
namespace BananaBreadItem
{
	[BepInPlugin("captainicy.bananaBread", "BananaBread", "0.1.2")]
	public class Plugin : BaseUnityPlugin
	{
		private const string GUID = "captainicy.bananaBread";

		private const string NAME = "BananaBread";

		private const string VERSION = "0.1.2";

		private const int rarity = 50;

		private const int price = 25;

		public static Plugin instance;

		private void Awake()
		{
			instance = this;
			string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "bananabread");
			AssetBundle val = AssetBundle.LoadFromFile(text);
			Item val2 = val.LoadAsset<Item>("Assets/BananaBreadItem/BananaBreadItem.asset");
			Utilities.FixMixerGroups(val2.spawnPrefab);
			NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
			Items.RegisterScrap(val2, 50, (LevelTypes)(-1));
			Items.RegisterItem(val2);
			TerminalNode val3 = ScriptableObject.CreateInstance<TerminalNode>();
			val3.clearPreviousText = true;
			val3.displayText = "dude i got some fucking banana bread at work today dude. hell yeah. my mom told me if i wait for things, like, good things will happen to me dude and fucking i waited for some things and i got some banana bread at work today dude. hell yeah. so it just goes to show that waiting for things is, like, worth it. but there’s a lot of bad things in this world, dude. like fucking skunks dude? hell no. Scratching your eye, but it’s STILL fucking ITCHY dude?! HELL no. The fucking CUBS, DUDE? HELL NO!! LIKE GETTING PAID NOT A LOT OF MONEY, DUDE?! FOR FUCKING WORKING?! HELL NO!!!! BUT BANANA BREAD?! AT FUCKING WORK, DUDE?! HELL YEAH!!!!!! HELL YEAH, BRO!!!! HELL YEAH!! BANANA BREAD, BRO, AT FUCKING WORK, DUDE!!!! HELL YEAH!!\n\n";
			Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val3, 25);
			Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), "captainicy.bananaBread");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Plugin captainicy.bananaBread is loaded!");
		}
	}
}