Decompiled source of NoBuildIntegrity v1.0.3

plugins/NoBuildIntegrityMod.dll

Decompiled 2 months ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using UnityEngine;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("NoBuildIntegrityMod")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("NoBuildIntegrityMod")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("24f56a3f-f2fc-4f73-a8bd-0c87c634528c")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace NoBuildIntegrityMod;

[BepInPlugin("Murkorus.NoBuildIntegrity", "NoBuildIntegrity", "1.0.0.0")]
[BepInProcess("valheim.exe")]
public class NoBuildIntegrity : BaseUnityPlugin
{
	[HarmonyPatch(typeof(WearNTear), "UpdateSupport")]
	private class NoBuildIntegrityPatch
	{
		private static void Postfix(ref float ___m_support)
		{
			___m_support = 5000f;
		}
	}

	private readonly Harmony harmony = new Harmony("Murkorus.NoBuildIntegrity");

	private void Awake()
	{
		harmony.PatchAll();
		Debug.Log((object)"Murkorus.NoBuildIntegrity has been loaded successfully.");
	}
}