Decompiled source of LethalBubenMod v0.1.7

LethalBubenMod.dll

Decompiled 2 weeks 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("LethalBubenMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalBubenMod")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f391a280-c270-4542-b77e-a629d9e00020")]
[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 LethalBubenMod;

[BepInPlugin("asujiro.lethalbubenmod", "LethalBubenMod", "0.1.7")]
public class Plugin : BaseUnityPlugin
{
	private const string GUID = "asujiro.lethalbubenmod";

	private const string NAME = "LethalBubenMod";

	private const string VERSION = "0.1.7";

	public static Plugin instance;

	private void Awake()
	{
		instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "lethalbubenmod");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/LethalBubenMod/Scraps/Warsteiner/Warsteiner.asset");
		Items.RegisterScrap(val2, 13, (LevelTypes)(-1));
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Item val3 = val.LoadAsset<Item>("Assets/LethalBubenMod/Scraps/EaNasier/EaNasier.asset");
		Items.RegisterScrap(val3, 15, (LevelTypes)(-1));
		NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab);
		Item val4 = val.LoadAsset<Item>("Assets/LethalBubenMod/Scraps/Bier/Bier.asset");
		Items.RegisterScrap(val4, 15, (LevelTypes)(-1));
		NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab);
		Item val5 = val.LoadAsset<Item>("Assets/LethalBubenMod/Scraps/FortniteCard/FortniteCard.asset");
		Items.RegisterScrap(val5, 14, (LevelTypes)(-1));
		NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab);
		Item val6 = val.LoadAsset<Item>("Assets/LethalBubenMod/Scraps/Manthey/manthey.asset");
		val6.twoHanded = true;
		val6.twoHandedAnimation = true;
		Items.RegisterScrap(val6, 20, (LevelTypes)(-1));
		NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded LethalBubenMod");
	}
}