Decompiled source of NoTeeth v1.0.0

NoTeeth/NoTeeth.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 System.Security;
using System.Security.Permissions;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;
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("NoTeeth")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoTeeth")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e11bee61-469e-4fba-9660-ec40f4e265c6")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")]
[assembly: SecurityPermission(SecurityAction.RequestMinimum, SkipVerification = true)]
[assembly: AssemblyVersion("1.0.0.0")]
[module: UnverifiableCode]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[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 NoTeeth
{
	[BepInPlugin("com.achelia.noteeth", "NoTeeth", "1.0.0")]
	public class NoTeethPlugin : BaseUnityPlugin
	{
		private void Awake()
		{
			//IL_0006: Unknown result type (might be due to invalid IL or missing references)
			//IL_000c: Expected O, but got Unknown
			Harmony val = new Harmony("com.achelia.noteeth");
			val.PatchAll();
			((BaseUnityPlugin)this).Logger.LogInfo((object)"GOT RID OF THE MOTHERFUCKER, HAVE FUN.");
		}
	}
	[HarmonyPatch(typeof(CL_GameManager), "Awake")]
	public static class CL_GameManager_Awake_Patch
	{
		private static void Postfix(CL_GameManager __instance)
		{
			__instance.allowScores = false;
		}
	}
	[HarmonyPatch(typeof(DEN_Teeth), "Awake")]
	public static class DEN_Teeth_Awake_Patch
	{
		private static void Postfix(DEN_Teeth __instance)
		{
			((Component)__instance).gameObject.SetActive(false);
			Object.Destroy((Object)(object)((Component)__instance).gameObject);
		}
	}
	[HarmonyPatch(typeof(DEN_Teeth), "OnEnable")]
	public static class DEN_Teeth_OnEnable_Patch
	{
		private static bool Prefix(DEN_Teeth __instance)
		{
			((Component)__instance).gameObject.SetActive(false);
			Object.Destroy((Object)(object)((Component)__instance).gameObject);
			return false;
		}
	}
}