Decompiled source of TorchesEternal v0.3.0

TorchesEternal.dll

Decompiled a year ago
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.IgnoreSymbolStoreSequencePoints)]
[assembly: AssemblyTitle("TorchesEternal")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("TorchesEternal")]
[assembly: AssemblyCopyright("Copyright ©  2021")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("4845a6cc-2f52-44c8-8b7e-b378584a4c66")]
[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 TorchesEternal;

public static class PluginInfo
{
	public const string Name = "TorchesEternal";

	public const string Guid = "wildbill22.TorchesEternal";

	public const string Version = "0.3";
}
[BepInPlugin("wildbill22.TorchesEternal", "TorchesEternal", "0.3")]
public class Plugin : BaseUnityPlugin
{
	public void Awake()
	{
		//IL_0005: Unknown result type (might be due to invalid IL or missing references)
		new Harmony("wildbill22.TorchesEternal").PatchAll();
	}
}
[HarmonyPatch]
public static class Patches
{
	[HarmonyPrefix]
	[HarmonyPatch(typeof(Fireplace), "UpdateFireplace")]
	public static void Fireplace_UpdateFireplace(Fireplace __instance, ref ZNetView ___m_nview)
	{
		___m_nview.GetZDO().Set("fuel", __instance.m_maxFuel);
	}
}