Decompiled source of daboisitem v0.0.1

daboisitem.dll

Decompiled 17 hours ago
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
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("daboisitem")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("Starforge Systems")]
[assembly: AssemblyProduct("daboisitem")]
[assembly: AssemblyCopyright("Copyright © Starforge Systems 2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("b4531c29-9ed8-4c5c-aa29-478271b1005b")]
[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 daboisitem;

[BepInPlugin("daboisitem", "Dabois Mod", "0.0.1")]
public class Plugin : BaseUnityPlugin
{
	private const string modGUID = "daboisitem";

	private const string modName = "Dabois Mod";

	private const string modVersion = "0.0.1";

	public static Plugin instance;

	private void Awake()
	{
		instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "daboisitem");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/JoshCatItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		Items.RegisterScrap(val2, 5, (LevelTypes)(-1));
		Item val3 = val.LoadAsset<Item>("Assets/RahulItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab);
		Utilities.FixMixerGroups(val3.spawnPrefab);
		Items.RegisterScrap(val3, 1, (LevelTypes)(-1));
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Dabois Item loaded");
	}
}