using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using LethalLib.Modules;
using UnityEngine;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: AssemblyVersion("0.0.0.0")]
namespace BeansCompany;
[BepInPlugin("Xatro.BeansCompany", "Beans Company", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
private const string modGUID = "Xatro.BeansCompany";
private const string modName = "Beans Company";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("Xatro.BeansCompany");
internal static ManualLogSource mls;
private void Awake()
{
mls = Logger.CreateLogSource("Xatro.BeansCompany");
AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "beans"));
if ((Object)(object)val != (Object)null)
{
mls.LogInfo((object)"Beans Loaded");
Item val2 = val.LoadAsset<Item>("assets/beans/beans.asset");
Utilities.FixMixerGroups(val2.spawnPrefab);
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
Items.RegisterScrap(val2, 30, (LevelTypes)(-1));
}
}
}