Decompiled source of Ultrakill Style Editor v1.0.0

Plugin.dll

Decompiled a week ago
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("Plugin")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Plugin")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("d45a69cd-8f85-42db-a697-4cf19522cd57")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace UltrakillStyleMod;

[BepInPlugin("com.descoherence.ukstyle", "UK Style Editor", "1.0.0")]
public class Plugin : 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.descoherence.ukstyle");
		val.PatchAll();
		((BaseUnityPlugin)this).Logger.LogInfo((object)"MOD RELOADED: Success!");
	}
}
[HarmonyPatch(typeof(StyleHUD), "AddPoints")]
public class StyleHUD_Patch
{
	private static void Prefix(ref string __1)
	{
		if (__1 != null)
		{
			switch (__1)
			{
			case "<color=#0d944a>ultrakill.arsenal</color>":
				__1 = "ADHD";
				break;
			case "<color=#ffd700>ultrakill.ricoshot</color>":
				__1 = "Tax evasion";
				break;
			case "ultrakill.kill":
				__1 = "APPETIZER";
				break;
			case "ultrakill.bigkill":
				__1 = "FAT L";
				break;
			case "ultrakill.fireworks":
				__1 = "GENDER REVEAL";
				break;
			case "<color=#0d944a>ultrakill.headshotcombo":
				__1 = "SPEEDRUN GENOCIDE";
				break;
			case "ultrakill.disrespect":
				__1 = "Ew";
				break;
			case "<color=#400042>ultrakill.parry</color>":
				__1 = "Nuh uh!";
				break;
			case "<color=#400042>ultrakill.projectileboost</color>":
				__1 = "THINK FAST CHUCKLENUTS";
				break;
			case "<color=#ffd700>ultrakill.fistfullofdollar</color>":
				__1 = "McDuck";
				break;
			case "<color=#ba310f>ultrakill.doublekill</color>":
				__1 = "STONKS";
				break;
			case "<color=#ba310f>ultrakill.triplekill</color>":
				__1 = "GASLIGHT GATEKEEP GIRLBOSS";
				break;
			case "<color=#ba310f>ultrakill.multikill</color>":
				__1 = "ULTRA-VIOLENCE";
				break;
			case "ultrakill.fistkill":
				__1 = "Mid";
				break;
			case "ultrakill.bigfistkill":
				__1 = "Git gud";
				break;
			case "ultrakill.headshot":
				__1 = "LOBOTOMY";
				break;
			case "ultrakill.bigheadshot":
				__1 = "BRAINFUCK";
				break;
			case "<color=#5c0202>ultrakill.enraged</color>":
				__1 = "cry bout it";
				break;
			}
		}
	}
}