using System; using System.Diagnostics; using System.Reflection; using System.Runtime.CompilerServices; using System.Runtime.Versioning; using BepInEx; using BepInEx.Configuration; using HarmonyLib; using Microsoft.CodeAnalysis; using UnityEngine; [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.1", FrameworkDisplayName = ".NET Standard 2.1")] [assembly: AssemblyCompany("HowToFish.ThrowBoost")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("0.1.0.0")] [assembly: AssemblyInformationalVersion("0.1.0")] [assembly: AssemblyProduct("HowToFish.ThrowBoost")] [assembly: AssemblyTitle("HowToFish.ThrowBoost")] [assembly: AssemblyVersion("0.1.0.0")] [module: RefSafetyRules(11)] namespace Microsoft.CodeAnalysis { [CompilerGenerated] [Embedded] internal sealed class EmbeddedAttribute : Attribute { } } namespace System.Runtime.CompilerServices { [CompilerGenerated] [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 HowToFish.ThrowBoost { [BepInPlugin("community.howtofish.throwboost", "Throw Boost", "0.1.0")] [BepInProcess("How to Fish.exe")] public class Plugin : BaseUnityPlugin { [HarmonyPatch(typeof(PlayerHolding), "FinalDropForce")] private class PatchFinalDropForce { private static void Postfix(ref Vector3 __result) { //IL_0016: Unknown result type (might be due to invalid IL or missing references) //IL_0025: Unknown result type (might be due to invalid IL or missing references) //IL_002a: Unknown result type (might be due to invalid IL or missing references) if (Enabled.Value) { __result *= ThrowMultiplier.Value; } } } private static Plugin Instance; private static Harmony Harmony; internal static ConfigEntry Enabled; internal static ConfigEntry ThrowMultiplier; private void Awake() { //IL_0050: Unknown result type (might be due to invalid IL or missing references) //IL_005a: Expected O, but got Unknown Instance = this; Enabled = ((BaseUnityPlugin)this).Config.Bind("General", "Enabled", true, "Boost Q drop/throw force"); ThrowMultiplier = ((BaseUnityPlugin)this).Config.Bind("General", "ThrowMultiplier", 2f, "Force multiplier applied to Q throw"); Harmony = new Harmony("community.howtofish.throwboost"); Harmony.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"Throw Boost 0.1.0 loaded"); } } }