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 SpeedySpider v1.0.1
project.dll
Decompiled 2 months agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using BepInEx; using BepInEx.Logging; using HarmonyLib; 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: AssemblyVersion("1.0.0.0")] [BepInPlugin("SpeedySpider", "SpiderBuff", "1.0.1")] public class Plugin : BaseUnityPlugin { private readonly Harmony harmony = new Harmony("SpeedySpider"); private static ManualLogSource Log; private void Awake() { Log = ((BaseUnityPlugin)this).Logger; Log.LogInfo((object)"Plugin SpeedySpider is loaded!"); harmony.PatchAll(); } } [HarmonyPatch(typeof(SandSpiderAI))] public class SandSpiderAIPatch { [HarmonyPatch("Update")] [HarmonyPostfix] public static void UpdatePatch(SandSpiderAI __instance) { if (((EnemyAI)__instance).currentBehaviourStateIndex == 0 || ((EnemyAI)__instance).currentBehaviourStateIndex == 1 || ((EnemyAI)__instance).currentBehaviourStateIndex == 2) { NavMeshAgent agent = ((EnemyAI)__instance).agent; ((EnemyAI)__instance).agent.speed = ((EnemyAI)__instance).agent.speed * 1.2f; __instance.spiderSpeed *= 1.2f; } } } public static class PluginInfo { public const string PLUGIN_GUID = "SpeedySpider"; public const string PLUGIN_NAME = "SpiderBuff"; public const string PLUGIN_VERSION = "1.0.1"; }