Decompiled source of mentalistbutitsfella v1.0.0

BepInEx/plugins/Mentalistfella/fuckyoubob.dll

Decompiled a year ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("fuckyoubob")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("fuckyoubob")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e6bc5650-42f1-4dbe-a2dd-1b91ecd1f8ab")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace RenameMentalistMod;

[BepInPlugin("com.colevr.renamementalist", "Rename Mentalist", "1.0.0")]
public class RenameMentalistMod : 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.yourname.renamementalist");
		val.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"RenameMentalistMod loaded.");
	}
}
[HarmonyPatch(typeof(EnemyParent), "Awake")]
public static class Patch_EnemyParent_Awake
{
	private static void Postfix(EnemyParent __instance)
	{
		if (string.Equals(__instance.enemyName, "Mentalist", StringComparison.OrdinalIgnoreCase))
		{
			__instance.enemyName = "Nigga";
		}
	}
}