using 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("DougHRitoPackCustomScrap")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DougHRitoPackCustomScrap")]
[assembly: AssemblyCopyright("Copyright © 2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3c7bab3d-cfa0-4e40-a1f4-f0d49d0598fe")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace DougHRitoPackCustomScrap;
[BepInPlugin("DougHRitoPack.DougHRitoPackCustomScrap", "DougHRitoPackCustomScrap", "1.0.0")]
public class DougHRitoPackCustomScrap : BaseUnityPlugin
{
private const string modGUID = "DougHRitoPack.DougHRitoPackCustomScrap";
private const string modName = "DougHRitoPackCustomScrap";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("DougHRitoPack.DougHRitoPackCustomScrap");
private static DougHRitoPackCustomScrap Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "huhcat");
AssetBundle val = AssetBundle.LoadFromFile(text);
Item val2 = val.LoadAsset<Item>("Assets/The Stuff/HuhcatItem.asset");
NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
Utilities.FixMixerGroups(val2.spawnPrefab);
Items.RegisterScrap(val2, 100, (LevelTypes)(-1));
((BaseUnityPlugin)this).Logger.LogInfo((object)"DougHRitoPackCustomScap");
mls = Logger.CreateLogSource("DougHRitoPack.DougHRitoPackCustomScrap");
mls.LogInfo((object)"The DougHRitoPackCustomScrap mod has awaken");
harmony.PatchAll(typeof(DougHRitoPackCustomScrap));
}
}