using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
using Permanent_Ladder.Patches;
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("Permanent Ladder")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Permanent Ladder")]
[assembly: AssemblyCopyright("Copyright © 2023")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("3be085ce-9b50-41f6-8f0a-a66bd6406015")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: TargetFramework(".NETFramework,Version=v4.7.2", FrameworkDisplayName = ".NET Framework 4.7.2")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace Permanent_Ladder
{
[BepInPlugin("JPSilver.EquipmentTweaks", "Equipment Tweaks", "1.0.0")]
public class PLadder : BaseUnityPlugin
{
private const string modGUID = "JPSilver.EquipmentTweaks";
private const string modName = "Equipment Tweaks";
private const string modVersion = "1.0.0";
private readonly Harmony harmony = new Harmony("JPSilver.EquipmentTweaks");
private static PLadder Instance;
internal ManualLogSource mls;
private void Awake()
{
if ((Object)(object)Instance == (Object)null)
{
Instance = this;
}
mls = Logger.CreateLogSource("JPSilver.EquipmentTweaks");
mls.LogInfo((object)"EquipmentTweaks is Awake");
harmony.PatchAll(typeof(PLadder));
harmony.PatchAll(typeof(LadderPatch));
}
}
}
namespace Permanent_Ladder.Patches
{
[HarmonyPatch(typeof(ExtensionLadderItem))]
internal class LadderPatch
{
[HarmonyPatch("Update")]
[HarmonyPostfix]
private static void NoRetractPatch(ref float ___ladderTimer)
{
___ladderTimer = 3f;
}
}
}