using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using BepInEx;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyVersion("0.0.0.0")]
namespace BrackenBuff;
[BepInPlugin("com.yourname.brackenbuff", "Bracken Buff", "1.0.0")]
public class BrackenBuffPlugin : BaseUnityPlugin
{
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Expected O, but got Unknown
Harmony val = new Harmony("com.yourname.brackenbuff");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Bracken Buff loaded successfully.");
}
}
[HarmonyPatch(typeof(FlowermanAI), "EnterAngerModeServerRpc")]
public static class BrackenAngerDurationPatch
{
private static void Prefix(ref float angerTime)
{
angerTime *= 2f;
}
}
[HarmonyPatch(typeof(FlowermanAI), "LookAtFlowermanTrigger")]
public static class BrackenStaredownChancePatch
{
private static void Prefix(FlowermanAI __instance)
{
FieldInfo field = typeof(FlowermanAI).GetField("stareDownChanceIncrease", BindingFlags.Instance | BindingFlags.NonPublic);
if (field != null)
{
int num = (int)field.GetValue(__instance);
field.SetValue(__instance, num + 2);
}
}
}