using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using FreeBirdTotemRemixJester.Patches;
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("BetterJester")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("BetterJester")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("53f74400-2c37-4d9f-9765-dcc52ea9c6f7")]
[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 FreeBirdTotemRemixJester
{
[BepInPlugin("TopraksuK.FBTRJ", "Free Bird Totem Remix for Jester Mod", "1.0.1")]
public class LethalBruhModBase : BaseUnityPlugin
{
private const string modGUID = "TopraksuK.FBTRJ";
private const string modName = "Free Bird Totem Remix for Jester Mod";
private const string modVersion = "1.0.1";
private readonly Harmony harmony = new Harmony("TopraksuK.FBTRJ");
private static LethalBruhModBase Instance;
internal ManualLogSource MLS;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
MLS = Logger.CreateLogSource("TopraksuK.FBTRJ");
MLS.LogInfo((object)"Loading Free Bird TOTEM Remix for Jester.");
harmony.PatchAll(typeof(JesterAIPatch));
MLS.LogInfo((object)"Free Bird Totem Remix for Jester Mod. Press ESC if the game is frozen occasionally.");
harmony.PatchAll(typeof(LethalBruhModBase));
}
}
}
namespace FreeBirdTotemRemixJester.Patches
{
[HarmonyPatch(typeof(JesterAI))]
internal class JesterAIPatch
{
[HarmonyPatch("Start")]
[HarmonyPrefix]
public static void JesterAIPopUpSFXPatch(ref AudioClip ___popGoesTheWeaselTheme)
{
}
[HarmonyPatch("Start")]
[HarmonyPrefix]
public static void JesterAIScreamSFXPatch(ref AudioClip ___screamingSFX)
{
}
[HarmonyPatch("SetJesterInitialValues")]
[HarmonyPostfix]
public static void JestAIInitialPatch(ref float ___popUpTimer)
{
___popUpTimer = 37f;
}
}
}