Decompiled source of FastFishing v1.0.0

BepInEx/plugins/FastFishing/FastFishing.dll

Decompiled 14 hours ago
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.Versioning;
using BepInEx;
using BepInEx.Logging;
using HarmonyLib;
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 = "")]
[assembly: AssemblyCompany("FastFishing")]
[assembly: AssemblyConfiguration("Debug")]
[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: AssemblyInformationalVersion("1.0.0")]
[assembly: AssemblyProduct("FastFishing")]
[assembly: AssemblyTitle("FastFishing")]
[assembly: AssemblyVersion("1.0.0.0")]
namespace FastfishingPlugin;

[BepInPlugin("_Fastfishing", "fastfishing", "1.0.0")]
public class Plugin : BaseUnityPlugin
{
	public static int configBagCount;

	internal static ManualLogSource Logger;

	internal static Harmony harmony;

	private void Awake()
	{
		//IL_0011: Unknown result type (might be due to invalid IL or missing references)
		//IL_001b: Expected O, but got Unknown
		Logger = ((BaseUnityPlugin)this).Logger;
		harmony = new Harmony("Fastfishing");
		harmony.PatchAll();
		Logger.LogInfo((object)"Plugin Fastfishing is loaded!");
	}
}
[HarmonyPatch]
public class FastfishingPatch : MonoBehaviour
{
	[HarmonyPatch(typeof(FishingRod), "Start")]
	[HarmonyPrefix]
	private static void Prefix3(FishingRod __instance)
	{
		__instance.minFishTime = 0.1f;
		__instance.maxFishTime = 0.2f;
	}
}