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 FrostyFovFix v1.0.1
FrostRelicFov.dll
Decompiled 2 years agousing System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using IL.RoR2; using Mono.Cecil.Cil; using MonoMod.Cil; using On.RoR2; using RoR2; [assembly: CompilationRelaxations(8)] [assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)] [assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)] [assembly: TargetFramework(".NETStandard,Version=v2.0", FrameworkDisplayName = "")] [assembly: AssemblyCompany("FrostRelicFov")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("FrostRelicFov")] [assembly: AssemblyTitle("FrostRelicFov")] [assembly: AssemblyVersion("1.0.0.0")] namespace FrostRelicFov; [BepInPlugin("com.HouseOfFruits.FrostyFovFix", "FrostyFovFix", "1.1.0")] public class Main : BaseUnityPlugin { public const string guid = "com.HouseOfFruits.FrostyFovFix"; public const string teamName = "HouseOfFruits"; public const string modName = "FrostyFovFix"; public const string version = "1.1.0"; private void Awake() { //IL_0008: Unknown result type (might be due to invalid IL or missing references) //IL_0012: Expected O, but got Unknown IcicleAuraController.OnIciclesActivated += new Manipulator(FrostyFovFix); } private void FrostyFovFix(ILContext il) { //IL_0002: Unknown result type (might be due to invalid IL or missing references) //IL_0008: Expected O, but got Unknown //IL_0062: Unknown result type (might be due to invalid IL or missing references) ILCursor val = new ILCursor(il); int num = default(int); val.GotoNext((MoveType)0, new Func<Instruction, bool>[2] { (Instruction x) => ILPatternMatchingExt.MatchLdcI4(x, ref num), (Instruction x) => ILPatternMatchingExt.MatchCallOrCallvirt<CameraTargetParams>(x, "RequestAimType") }); val.Remove(); val.Emit(OpCodes.Ldc_I4, 0); } private AimRequest FrostyFixFix(orig_RequestAimType orig, CameraTargetParams self, AimType aimType) { //IL_0001: Unknown result type (might be due to invalid IL or missing references) //IL_0003: Invalid comparison between Unknown and I4 //IL_000f: Unknown result type (might be due to invalid IL or missing references) if ((int)aimType == 2) { return null; } return orig.Invoke(self, aimType); } }