Decompiled source of SippyStrawWeapon v1.0.0

SippyStrawWeapon.dll

Decompiled 6 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("SippyStrawWeapon")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("SippyStrawWeapon")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("efb97642-4114-4967-9687-366d461fe680")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace SippyStrawWeapon;

[BepInPlugin("DesperateDinosaur.SippyStrawWeapon", "SippyStrawWeapon", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	private const string GUID = "DesperateDinosaur.SippyStrawWeapon";

	private const string NAME = "SippyStrawWeapon";

	private const string VERSION = "1.0.0";

	public static Plugin instance;

	private void Awake()
	{
		instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "sippystrawmod");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/Custom Objects/sippy_straw/sippy_straw_item.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		TerminalNode val3 = ScriptableObject.CreateInstance<TerminalNode>();
		val3.clearPreviousText = true;
		val3.displayText = "A heavy, metal spoon used for whacking enemies!\n\n";
		Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val3, 30);
		val2.spawnPrefab.GetComponent<Shovel>();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded Item SippyStrawWeapon");
	}
}