Decompiled source of StatsBlind v1.0.0

plugins/yazirushi-StatsBlind/StatsBlind.dll

Decompiled a day ago
using System.Collections.Generic;
using System.Diagnostics;
using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
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("test6")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("test6")]
[assembly: AssemblyCopyright("Copyright ©  2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("e2b15444-3cd5-4232-a911-41b24ab18ebd")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace StatsBlind;

[BepInPlugin("yazirushi.StatsBlind", "StatsBlind", "1.0.0")]
public class StatsBlind : BaseUnityPlugin
{
	private readonly Harmony harmony = new Harmony("yazirushi.StatsBlind");

	internal static ManualLogSource mls;

	private void Awake()
	{
		mls = ((BaseUnityPlugin)this).Logger;
		mls.LogInfo((object)"Starting StatsBlind...");
		harmony.PatchAll();
	}
}
[HarmonyPatch(typeof(StatsUI), "Fetch")]
public class Transpiler_Patch
{
	private static IEnumerable<CodeInstruction> Transpiler(IEnumerable<CodeInstruction> instructions)
	{
		//IL_001f: Unknown result type (might be due to invalid IL or missing references)
		//IL_0029: Expected O, but got Unknown
		//IL_0041: Unknown result type (might be due to invalid IL or missing references)
		//IL_004b: Expected O, but got Unknown
		List<CodeInstruction> list = new List<CodeInstruction>(instructions);
		list.RemoveRange(78, 5);
		list.Insert(78, new CodeInstruction(OpCodes.Ldstr, (object)"???"));
		list.RemoveRange(67, 3);
		list.Insert(67, new CodeInstruction(OpCodes.Ldstr, (object)"Unknown Upgrade"));
		return list;
	}
}