Decompiled source of BirthdayHatRemove v1.0.0

BirthdayHatRemove.dll

Decompiled 4 hours ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Configuration;
using GameNetcodeStuff;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("LethalPlugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("LethalPlugin")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("0e442c44-8597-4d85-abe7-d8d3cc7d1e3f")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.6", FrameworkDisplayName = ".NET Framework 4.6")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace LethalPlugin;

[BepInPlugin("Vrtua.LethalPlugin.pluginX.LethalPluginXI", "LethalPluginXI", "1.0.0")]
public class LethalPluginXI : BaseUnityPlugin
{
	private void Awake()
	{
		//IL_0015: Unknown result type (might be due to invalid IL or missing references)
		//IL_0020: Unknown result type (might be due to invalid IL or missing references)
		((BaseUnityPlugin)this).Logger.LogInfo((object)"Successfully load BrithdayHatPatch");
		new Harmony("Vrtua.LethalPlugin.plugin.LethalPluginXI");
		new Harmony("Vrtua.LethalPlugin.pluginX.LethalPluginXI").PatchAll();
	}
}
public class GlobalsVar
{
	public static bool inserted;

	public static ConfigEntry<KeyboardShortcut> ShowCounter { get; set; }
}
[HarmonyPatch(typeof(PlayerControllerB))]
[HarmonyPatch("Update")]
internal class Updator1
{
	private static Updator1 up = new Updator1();

	private LethalPluginXI bu = new LethalPluginXI();

	public static void Postfix()
	{
	}

	private void CallCommonProcessor()
	{
	}

	private void BThread(int arg)
	{
		HUDManager.Instance.DisplayTip("MSG", "", true, false, "LC_Tip1");
	}

	public void insert()
	{
	}
}
[HarmonyPatch(typeof(UnlockableSuit))]
[HarmonyPatch("ChangePlayerCostumeElement", new Type[]
{
	typeof(Transform),
	typeof(GameObject)
})]
internal class Birthday_hatPatch
{
	public static bool Prefix(ref Transform costumeContainer, ref GameObject newCostume)
	{
		foreach (UnlockableItem unlockable in StartOfRound.Instance.unlockablesList.unlockables)
		{
			if ((Object)(object)newCostume == (Object)(object)unlockable.lowerTorsoCostumeObject)
			{
				return false;
			}
		}
		return true;
	}
}