Decompiled source of Wesleys Valuables v1.0.3

WesleysItemProj.dll

Decompiled 2 weeks ago
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using System.Security;
using System.Security.Permissions;
using BepInEx;
using Microsoft.CodeAnalysis;
using REPOLib.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: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: AssemblyCompany("Magic_Wesley")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyCopyright("Copyright © 2025 Magic_Wesley")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("WesleysItemProj")]
[assembly: AssemblyTitle("WesleysItemProj")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Microsoft.CodeAnalysis.Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace WesleysItemProj
{
	[BepInPlugin("MagicWesley.WesleysItems", "WesleysItems", "0.2.0")]
	[BepInDependency(/*Could not decode attribute arguments.*/)]
	public class WesleysItems : BaseUnityPlugin
	{
		private void Awake()
		{
			string directoryName = Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location);
			string text = Path.Combine(directoryName, "wesleysitems_itemprefabs");
			AssetBundle val = AssetBundle.LoadFromFile(text);
			GameObject val2 = val.LoadAsset<GameObject>("BeholdersEye");
			GameObject val3 = val.LoadAsset<GameObject>("BiomontyDisplay");
			GameObject val4 = val.LoadAsset<GameObject>("Pickle");
			GameObject val5 = val.LoadAsset<GameObject>("PickleJar");
			GameObject val6 = val.LoadAsset<GameObject>("SpikyEye");
			GameObject val7 = val.LoadAsset<GameObject>("BananaHolder");
			GameObject val8 = val.LoadAsset<GameObject>("Webley");
			GameObject val9 = val.LoadAsset<GameObject>("Saphire");
			List<string> list = new List<string> { "Valuables - Arctic" };
			List<string> list2 = new List<string> { "Valuables - Wizard", "Valuables - Manor" };
			List<string> list3 = new List<string> { "Valuables - Manor" };
			List<string> list4 = new List<string> { "Valuables - Generic" };
			Valuables.RegisterValuable(val2, list2);
			Valuables.RegisterValuable(val3, list2);
			Valuables.RegisterValuable(val4, list4);
			Valuables.RegisterValuable(val5, list4);
			Valuables.RegisterValuable(val6, list2);
			Valuables.RegisterValuable(val7, list3);
			Valuables.RegisterValuable(val8, list4);
			Valuables.RegisterValuable(val9, list);
		}
	}
	public static class MyPluginInfo
	{
		public const string PLUGIN_GUID = "WesleysItemProj";

		public const string PLUGIN_NAME = "WesleysItemProj";

		public const string PLUGIN_VERSION = "1.0.0";
	}
}
namespace System.Runtime.CompilerServices
{
	[AttributeUsage(AttributeTargets.Assembly, AllowMultiple = true)]
	internal sealed class IgnoresAccessChecksToAttribute : Attribute
	{
		public IgnoresAccessChecksToAttribute(string assemblyName)
		{
		}
	}
}