Decompiled source of BlockingPowerX2 Fixed v1.0.0

BlockingPowerX2.dll

Decompiled a week 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("BlockingPowerX2")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BlockingPowerX2")]
[assembly: AssemblyCopyright("Copyright ©  2025")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("ef6a6e2e-3cba-4bb5-9bff-51c1421e80bf")]
[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 BlockingPowerX2;

[BepInPlugin("dickdangerjustice.BlockingPowerX2", "BlockingPowerX2", "1.0.3")]
[BepInProcess("valheim.exe")]
public class BlockingPowerX2 : BaseUnityPlugin
{
	[HarmonyPatch(typeof(ItemData), "GetBaseBlockPower", new Type[] { typeof(int) })]
	private class blocking_power
	{
		private static void Postfix(ref float __result)
		{
			__result *= 2f;
		}
	}

	private readonly Harmony harmony = new Harmony("dickdangerjustice.BlockingPowerX2");

	private void Awake()
	{
		harmony.PatchAll();
	}
}