Decompiled source of LethalTess v1.0.3

LethalTess.dll

Decompiled 3 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("LethalTess")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalTess")]
[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 LethalTess;

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

	private const string NAME = "LethalTess";

	private const string VERSION = "1.0.3";

	public static Plugin instance;

	private void Awake()
	{
		instance = this;
		string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "tessitemmod");
		AssetBundle val = AssetBundle.LoadFromFile(text);
		Item val2 = val.LoadAsset<Item>("Assets/Custom Objects/low_poly_cat_item.asset");
		NetworkPrefabs.RegisterNetworkPrefab(val2.spawnPrefab);
		Utilities.FixMixerGroups(val2.spawnPrefab);
		TerminalNode val3 = ScriptableObject.CreateInstance<TerminalNode>();
		val3.clearPreviousText = true;
		val3.displayText = "She's a stinky girl!\n\n";
		val3.terminalEvent = "";
		val3.creatureName = "";
		Items.RegisterShopItem(val2, (TerminalNode)null, (TerminalNode)null, val3, 60);
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Loaded Item lethalTess");
	}
}