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("KnockbackMod")] [assembly: AssemblyConfiguration("Debug")] [assembly: AssemblyFileVersion("1.0.0.0")] [assembly: AssemblyInformationalVersion("1.0.0")] [assembly: AssemblyProduct("KnockbackMod")] [assembly: AssemblyTitle("KnockbackMod")] [assembly: AssemblyVersion("1.0.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 PumpJump { [BepInPlugin("com.kingidfk.pumpjump", "Pump Jump", "1.0.0")] public class PluginBase : BaseUnityPlugin { public static ConfigEntry MultiplicadorRetroceso; private void Awake() { //IL_002f: Unknown result type (might be due to invalid IL or missing references) //IL_0039: Expected O, but got Unknown //IL_0043: Unknown result type (might be due to invalid IL or missing references) //IL_0049: Expected O, but got Unknown MultiplicadorRetroceso = ((BaseUnityPlugin)this).Config.Bind("Knockback", "Power", 25f, new ConfigDescription("Pow Pow", (AcceptableValueBase)(object)new AcceptableValueRange(0f, 35f), Array.Empty())); Harmony val = new Harmony("com.kingidfk.pumpjump"); val.PatchAll(); ((BaseUnityPlugin)this).Logger.LogInfo((object)"¡Pump Jump inicializado!"); } } [HarmonyPatch(typeof(Weapon), "Awake")] public class ParcheInicializacionEscopeta { [HarmonyPostfix] public static void Postfix(Weapon __instance) { int value = Traverse.Create((object)__instance).Field("_projectileCountPerShot").Value; if (value > 1) { float value2 = PluginBase.MultiplicadorRetroceso.Value; Traverse.Create((object)__instance).Field("_recoilKnockback").Value = Mathf.RoundToInt(value2); } } } }