Decompiled source of DeziorsGlowstickMod v1.0.11

LethalGlowStick.dll

Decompiled 11 months 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("LethalGlowStick")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalGlowStick")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("de3d06dd-8137-4b80-852c-630a8c049b8b")]
[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 LethalGlowStick;

[BepInPlugin("DeziorsGlowstickMod", "LethalGlowStick", "1.0.0")]
public class GlowStick : BaseUnityPlugin
{
	private const string modGUID = "DeziorsGlowstickMod";

	private const string modName = "LethalGlowStick";

	private const string modVersion = "1.0.0";

	private static GlowStick instance;

	private void Awake()
	{
		instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "glowstickmod");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/MyGlowStick/GlowStickItem.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		TerminalNode val3 = ScriptableObject.CreateInstance<TerminalNode>();
		val3.clearPreviousText = true;
		val3.displayText = "A stick that glows. Don\u00b4t mikroWahfe it!\n\n";
		Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val3, 3);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded Item Glowstick");
	}
}