Decompiled source of morethings v1.0.1

BepInEx/plugins/newprojectW.dll

Decompiled a month ago
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
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: AssemblyTitle("newprojectW")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("newprojectW")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("172b853e-8978-4da6-b59b-568af21aa846")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace DoorReplacerMod;

[BepInPlugin("explosionahhhstudent.DoorReplacerMod", "Door Replacer Mod", "1.0.0")]
public class DoorReplacerMod : BaseUnityPlugin
{
	private void Awake()
	{
		string directoryName = Path.GetDirectoryName(((BaseUnityPlugin)this).Info.Location);
		AssetBundle val = AssetBundle.LoadFromFile(Path.Combine(directoryName, "combinedbundle"));
		if ((Object)(object)val == (Object)null)
		{
			Debug.LogError((object)"Failed to load combinedbundle AssetBundle!");
			return;
		}
		GameObject val2 = val.LoadAsset<GameObject>("Fixcup");
		GameObject val3 = val.LoadAsset<GameObject>("Fixmob");
		GameObject val4 = val.LoadAsset<GameObject>("fix2ring");
		GameObject val5 = val.LoadAsset<GameObject>("fix2robot");
		if ((Object)(object)val2 == (Object)null || (Object)(object)val3 == (Object)null || (Object)(object)val4 == (Object)null || (Object)(object)val5 == (Object)null)
		{
			Debug.LogError((object)"有模型在 combinedbundle 中找不到,請確認 AssetBundle 內資產名稱正確");
			return;
		}
		List<string> list = new List<string> { "Valuables - Wizard" };
		Valuables.RegisterValuable(val2, list);
		Valuables.RegisterValuable(val3, list);
		Valuables.RegisterValuable(val4, list);
		Valuables.RegisterValuable(val5, list);
	}
}
public static class MyPluginInfo
{
	public const string PLUGIN_GUID = "DoorReplacerMod";

	public const string PLUGIN_NAME = "Door Replacer Mod";

	public const string PLUGIN_VERSION = "1.0.0";
}