Decompiled source of Friendly Hoarding Bug v1.0.0

FriendlyBug.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 BepInEx.Logging;
using FriendlyBug.Patches;
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("FriendlyBug")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("FriendlyBug")]
[assembly: AssemblyCopyright("Copyright ©  2024")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("299fb22c-e23a-4e1e-8219-323656a9d13c")]
[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 FriendlyBug
{
	[BepInPlugin("OzzyElvis.LC.friendlybug", "Friendly hoarding bug", "1.0")]
	public class FriendlyHoardingBug : BaseUnityPlugin
	{
		private readonly Harmony harmony = new Harmony("OzzyElvis.FriendlyMod");

		internal ManualLogSource mls;

		private void Awake()
		{
			mls = Logger.CreateLogSource("OzzyElvis.FriendlyMod");
			mls.LogInfo((object)"yippie friendly!");
			harmony.PatchAll(typeof(FriendlyHoardingBug));
			harmony.PatchAll(typeof(HoardingBugAIPatch));
		}
	}
}
namespace FriendlyBug.Patches
{
	[HarmonyPatch(typeof(HoarderBugAI))]
	internal class HoardingBugAIPatch
	{
		[HarmonyPatch("IsHoarderBugAngry")]
		[HarmonyPrefix]
		private static bool PrefixIsHoarderBugAngry(ref bool __result)
		{
			__result = false;
			return false;
		}
	}
}