Decompiled source of ForeverBuild v1.1.0

ForeverBuild.dll

Decompiled 8 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("bepinex modding")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("bepinex modding")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("f1bf6f40-be18-43a7-b8d0-e1572c5fdf2a")]
[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 ForeverBuild;

[BepInPlugin("lime.plugins.foreverbuild", "Forever Build", "1.1")]
public class ForeverBuild : BaseUnityPlugin
{
	[HarmonyPatch(typeof(WearNTear), "UpdateSupport")]
	private static class RemoveSupportPatch
	{
		private static void Postfix(ref float ___m_support, ref ZNetView ___m_nview)
		{
			___m_support = 500f;
			___m_nview.GetZDO().Set("support", ___m_support);
		}
	}

	private void Awake()
	{
		Debug.Log((object)"Forever Build is here!");
		Harmony.CreateAndPatchAll(Assembly.GetExecutingAssembly(), (string)null);
	}
}