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 FrostVision v0.1.0
FrostVision.dll
Decompiled 5 months agousing System; using System.Diagnostics; using System.Linq; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using HarmonyLib; using Microsoft.CodeAnalysis; using RoR2; using UnityEngine; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints)] [assembly: TargetFramework(".NETStandard,Version=v2.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyVersion("0.1.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [Microsoft.CodeAnalysis.Embedded] [AttributeUsage(AttributeTargets.Module, AllowMultiple = false, Inherited = false)] internal sealed class RefSafetyRulesAttribute : Attribute { public readonly int Version; public RefSafetyRulesAttribute(int P_0) { Version = P_0; } } } namespace Prototype { [BepInPlugin("prototype.frost.relic", "FrostVision", "0.1.0")] public class FrostVision : BaseUnityPlugin { public const string version = "0.1.0"; public const string identifier = "prototype.frost.relic"; public void Awake() { Harmony.CreateAndPatchAll(((object)this).GetType(), (string)null); } [HarmonyPatch(typeof(CameraTargetParams), "RequestAimType")] [HarmonyPrefix] private static bool PreventCameraOverride(AimType aimType) { //IL_0000: Unknown result type (might be due to invalid IL or missing references) //IL_0002: Invalid comparison between Unknown and I4 return (int)aimType != 2; } [HarmonyPatch(typeof(IcicleAuraController), "Awake")] [HarmonyPostfix] private static void RemoveParticles(IcicleAuraController __instance) { __instance.procParticles = __instance.procParticles.Where((ParticleSystem particle) => ((Object)particle).name == "Procced").ToArray(); __instance.auraParticles = __instance.auraParticles.Where(delegate(ParticleSystem particle) { string name = ((Object)particle).name; return (name == "Ring, Outer" || name == "Area") ? true : false; }).ToArray(); } } }