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 FuckSpiders v1.0.5
F_CKspiders.dll
Decompiled 2 years agousing System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Logging; using F_CKspiders.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("F_CKspiders")] [assembly: AssemblyDescription("")] [assembly: AssemblyConfiguration("")] [assembly: AssemblyCompany("")] [assembly: AssemblyProduct("F_CKspiders")] [assembly: AssemblyCopyright("Copyright © 2023")] [assembly: AssemblyTrademark("")] [assembly: ComVisible(false)] [assembly: Guid("e342d5da-752e-4326-a947-ca22f3d37418")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: TargetFramework(".NETFramework,Version=v4.8", FrameworkDisplayName = ".NET Framework 4.8")] [assembly: AssemblyVersion("1.0.0.0")] namespace F_CKspiders { [BepInPlugin("Odie.FuckSpiders", "Fuck Spiders", "1.0.5")] public class FuckSpiders : BaseUnityPlugin { private const string modGUID = "Odie.FuckSpiders"; private const string modName = "Fuck Spiders"; private const string modVersion = "1.0.5"; private readonly Harmony harmony = new Harmony("Odie.FuckSpiders"); private static FuckSpiders Instance; internal static ManualLogSource mls; private void Awake() { if ((Object)(object)Instance == (Object)null) { Instance = this; } mls = Logger.CreateLogSource("Odie.FuckSpiders"); mls.LogInfo((object)"FUCK SPIDERS!!!"); harmony.PatchAll(typeof(FuckSpiders)); harmony.PatchAll(typeof(SandSpiderAIPatch)); } } } namespace F_CKspiders.Patches { [HarmonyPatch(typeof(SandSpiderAI))] internal class SandSpiderAIPatch { [HarmonyPatch(typeof(SandSpiderAI), "Start")] [HarmonyPostfix] private static void fuckSpidersPatch(SandSpiderAI __instance) { //IL_000a: Unknown result type (might be due to invalid IL or missing references) //IL_000f: Unknown result type (might be due to invalid IL or missing references) //IL_003d: Unknown result type (might be due to invalid IL or missing references) //IL_003e: Unknown result type (might be due to invalid IL or missing references) //IL_0044: Unknown result type (might be due to invalid IL or missing references) //IL_0045: Unknown result type (might be due to invalid IL or missing references) //IL_004b: Unknown result type (might be due to invalid IL or missing references) //IL_004c: Unknown result type (might be due to invalid IL or missing references) //IL_0052: Unknown result type (might be due to invalid IL or missing references) //IL_0053: Unknown result type (might be due to invalid IL or missing references) //IL_005b: Unknown result type (might be due to invalid IL or missing references) //IL_005c: Unknown result type (might be due to invalid IL or missing references) ((EnemyAI)__instance).KillEnemyOnOwnerClient(false); Vector3 meshContainerPosition = __instance.meshContainerPosition; Vector3 val = default(Vector3); ((Vector3)(ref val))..ctor(-999f, -999f, -999f); Vector3 val2 = default(Vector3); ((Vector3)(ref val2))..ctor(0f, 0f, 0f); __instance.meshContainerPosition = val; __instance.meshContainerServerPosition = val; __instance.meshContainerTarget = val; __instance.SyncMeshContainerPositionServerRpc(val, val2); __instance.SyncMeshContainerPositionClientRpc(val, val2); __instance.SyncMeshContainerPositionToClients(); Object.Destroy((Object)(object)((Component)__instance).gameObject); foreach (SandSpiderWebTrap webTrap in __instance.webTraps) { __instance.BreakWebServerRpc(webTrap.trapID, 0); } string text = "Spider at " + ((object)(Vector3)(ref meshContainerPosition)).ToString() + " FUCKED!"; FuckSpiders.mls.LogInfo((object)text); } } }