Decompiled source of MultiOverlay v1.0.0

plugins/RepoMultiOverlay.dll

Decompiled 5 days ago
using System.Collections;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
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("RepoMultiOverlay")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("RepoMultiOverlay")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("359e9a24-48eb-49c0-8fb1-ffb1a506d3cf")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
[BepInPlugin("se.dunde.repo.multioverlay", "Multi Overlay", "1.0.0")]
public class MultiOverlayPlugin : BaseUnityPlugin
{
	private void Awake()
	{
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Multi Overlay loaded!");
		((MonoBehaviour)this).StartCoroutine(EnableMultiOverlays());
	}

	private IEnumerator EnableMultiOverlays()
	{
		yield return (object)new WaitForSeconds(5f);
		if ((Object)(object)MetaManager.instance == (Object)null)
		{
			((BaseUnityPlugin)this).Logger.LogWarning((object)"MetaManager not found!");
			yield break;
		}
		foreach (CosmeticTypeAsset asset in MetaManager.instance.cosmeticTypeAssets)
		{
			CosmeticType type = asset.type;
			CosmeticType val = type;
			CosmeticType val2 = val;
			if ((int)val2 == 16 || val2 - 23 <= 6)
			{
				asset.canEquipMultiple = true;
				((BaseUnityPlugin)this).Logger.LogInfo((object)$"Enabled multi-equip for {asset.type}");
			}
		}
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Multi Overlay initialization complete.");
	}
}