Decompiled source of Carturs Follow Command v1.0.2

plugins/CarturFollowCommand.dll

Decompiled 2 days ago
using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
using Microsoft.CodeAnalysis;

[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyCompany("CarturFollowCommand")]
[assembly: AssemblyConfiguration("Release")]
[assembly: AssemblyFileVersion("1.0.2.0")]
[assembly: AssemblyInformationalVersion("1.0.2+5cfbce2a23ec36c229ab31eaba338b6c822003a2")]
[assembly: AssemblyProduct("CarturFollowCommand")]
[assembly: AssemblyTitle("CarturFollowCommand")]
[assembly: AssemblyVersion("1.0.2.0")]
[module: RefSafetyRules(11)]
namespace Microsoft.CodeAnalysis
{
	[CompilerGenerated]
	[Embedded]
	internal sealed class EmbeddedAttribute : Attribute
	{
	}
}
namespace System.Runtime.CompilerServices
{
	[CompilerGenerated]
	[Embedded]
	[AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)]
	internal sealed class RefSafetyRulesAttribute : Attribute
	{
		public readonly int Version;

		public RefSafetyRulesAttribute(int P_0)
		{
			Version = P_0;
		}
	}
}
namespace CarturFollowCommand
{
	[BepInPlugin("com.jekkle.valheim.carturfollowcommand", "Cartur's Follow Command", "1.0.2")]
	public class Plugin : BaseUnityPlugin
	{
		public const string PluginGuid = "com.jekkle.valheim.carturfollowcommand";

		public const string PluginName = "Cartur's Follow Command";

		public const string PluginVersion = "1.0.2";

		private void Awake()
		{
			Harmony.CreateAndPatchAll(typeof(Plugin).Assembly, "com.jekkle.valheim.carturfollowcommand");
			((BaseUnityPlugin)this).Logger.LogInfo((object)"Cartur's Follow Command 1.0.2 loaded - Tameable.m_commandable forced true.");
		}
	}
	[HarmonyPatch(typeof(Tameable), "Awake")]
	public static class Patch_TameableAwake
	{
		private static void Postfix(Tameable __instance)
		{
			__instance.m_commandable = true;
		}
	}
}