Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Decompiled source of MoreFunForJester v1.0.0
JesterBuffMod.dll
Decompiled 9 months agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using HarmonyLib; using UnityEngine; using UnityEngine.AI; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: AssemblyTitle("NoMoreCheatCompany")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("NoMoreCheatCompany")] [assembly: AssemblyCopyright("Copyright © 2024")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("fa45ba87-70ba-4d08-bcb5-fa8bb4d4232e")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyVersion("1.0.0.0")] [BepInPlugin("MoreFunForJester", "JesterBuff", "1.0.0")] public class Plugin : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("MoreFunForJester"); private static ManualLogSource Log; private void Awake() { Log = ((BaseUnityPlugin)this).Logger; Log.LogInfo((object)"Plugin MoreFunForJester is loaded!"); harmony.PatchAll(); } } [HarmonyPatch(typeof(JesterAI))] public class JesterAIPatch { [HarmonyPatch("Start")] [HarmonyPostfix] private static void StartPatch(JesterAI __instance) { __instance.popUpTimer *= 1f; __instance.beginCrankingTimer *= 1.5f; } [HarmonyPatch("DoAIInterval")] [HarmonyPostfix] private static void DoAIIntervalPatch(JesterAI __instance) { if (((EnemyAI)__instance).currentBehaviourStateIndex == 0 || ((EnemyAI)__instance).currentBehaviourStateIndex == 2) { NavMeshAgent agent = ((EnemyAI)__instance).agent; agent.speed *= 1.15f; } } [HarmonyPatch("SetJesterInitialValues")] [HarmonyPostfix] private static void SetJesterInitialValuesPatch(JesterAI __instance) { __instance.popUpTimer = Random.Range(37.9f, 38.1f); __instance.beginCrankingTimer = Random.Range(29.5f, 41.5f); } } public static class PluginInfo { public const string PLUGIN_GUID = "MoreFunForJester"; public const string PLUGIN_NAME = "JesterBuff"; public const string PLUGIN_VERSION = "1.0.0"; }