Decompiled source of BlockingPowerX2 v1.0.3

BlockingPowerX2.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("BlockingPowerX4")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BlockingPowerX4")]
[assembly: AssemblyCopyright("Copyright ©  2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("bdeacd1f-c0e2-4783-a498-02acf55c735b")]
[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(float __result)
		{
			__result *= 2f;
		}
	}

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

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