Decompiled source of Wesleys Valuables v1.0.1

WesleysItemProj.dll

Decompiled 4 hours ago
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
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("WesleysItemProj")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("WesleysItemProj")]
[assembly: AssemblyTitle("WesleysItemProj")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace WesleysItemProj;

[BepInPlugin("MagicWesley.WesleysItems", "WesleysItems", "0.1.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");
		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 - Wizard", "Valuables - Manor", "Valuables - Arctic", "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, list);
	}
}