item.dll

Decompiled 10 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("ScarletItem")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ScarletItem")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3d1bf633-2dd5-4d51-a726-ced07245478c")]
[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 scarlet_item
{
	[BepInPlugin("item", "item", "0.0.1")]
	public class plugin : BaseUnityPlugin
	{
		private const string GUID = "item";

		private const string NAME = "item";

		private const string VERSION = "0.0.1";

		public static plugin instance;

		private void Awake()
		{
			instance = this;
			string text = Path.Combine(Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location), "item");
			AssetBundle val = AssetBundle.LoadFromFile(text);
			TerminalNode val2 = ScriptableObject.CreateInstance<TerminalNode>();
			val2.clearPreviousText = true;
			Item val3 = val.LoadAsset<Item>("Assets/Item/Red Coin/RedCoin.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val3.spawnPrefab);
			Utilities.FixMixerGroups(val3.spawnPrefab);
			Items.RegisterScrap(val3, 60, (LevelTypes)(-1));
			Item val4 = val.LoadAsset<Item>("Assets/Item/Star Spawner/StarSpawner.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val4.spawnPrefab);
			Utilities.FixMixerGroups(val4.spawnPrefab);
			Items.RegisterScrap(val4, 45, (LevelTypes)(-1));
			Item val5 = val.LoadAsset<Item>("Assets/Item/Star/Star.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val5.spawnPrefab);
			Utilities.FixMixerGroups(val5.spawnPrefab);
			Items.RegisterScrap(val5, 45, (LevelTypes)(-1));
			Item val6 = val.LoadAsset<Item>("Assets/Item/Bowsers Dank Rave/BDR.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val6.spawnPrefab);
			Utilities.FixMixerGroups(val6.spawnPrefab);
			Items.RegisterScrap(val6, 15, (LevelTypes)(-1));
			Item val7 = val.LoadAsset<Item>("Assets/Item/Call of Duty/MW3.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val7.spawnPrefab);
			Utilities.FixMixerGroups(val7.spawnPrefab);
			Items.RegisterScrap(val7, 50, (LevelTypes)(-1));
			Item val8 = val.LoadAsset<Item>("Assets/Item/You Day/YouDay.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val8.spawnPrefab);
			Utilities.FixMixerGroups(val8.spawnPrefab);
			Items.RegisterScrap(val8, 6, (LevelTypes)(-1));
			Item val9 = val.LoadAsset<Item>("Assets/Item/Red Star/Star Red.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val9.spawnPrefab);
			Utilities.FixMixerGroups(val9.spawnPrefab);
			Items.RegisterScrap(val9, 45, (LevelTypes)(-1));
			Item val10 = val.LoadAsset<Item>("Assets/Item/Green Star/Green Star.asset");
			NetworkPrefabs.RegisterNetworkPrefab(val10.spawnPrefab);
			Utilities.FixMixerGroups(val10.spawnPrefab);
			Items.RegisterScrap(val10, 45, (LevelTypes)(-1));
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Your shit is patched");
		}
	}
}
namespace scarlet_item.behaviors
{
	internal class Damageplayer : Shovel
	{
		public override void ItemActivate(bool used, bool buttonDown = true)
		{
			((GrabbableObject)this).ItemActivate(used, buttonDown);
			if (buttonDown)
			{
				((GrabbableObject)this).playerHeldBy.ClickHoldInteraction();
			}
		}
	}
}