using System;
using System.Diagnostics;
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using BepInEx;
using HarmonyLib;
[assembly: CompilationRelaxations(8)]
[assembly: RuntimeCompatibility(WrapNonExceptionThrows = true)]
[assembly: Debuggable(DebuggableAttribute.DebuggingModes.Default | DebuggableAttribute.DebuggingModes.DisableOptimizations | DebuggableAttribute.DebuggingModes.IgnoreSymbolStoreSequencePoints | DebuggableAttribute.DebuggingModes.EnableEditAndContinue)]
[assembly: AssemblyTitle("ClassLibrary1 nofocuslimits")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ClassLibrary1 nofocuslimits")]
[assembly: AssemblyCopyright("Copyright © 2026")]
[assembly: AssemblyTrademark("")]
[assembly: ComVisible(false)]
[assembly: Guid("7d895501-cedc-4c2c-afa2-e91c0c392285")]
[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")]
[BepInPlugin("com.PlNES.focusanywhere", "Focus Anywhere", "1.0.0")]
public class FocusAnywhereMod : BaseUnityPlugin
{
private void Awake()
{
//IL_0006: Unknown result type (might be due to invalid IL or missing references)
//IL_000c: Expected O, but got Unknown
Harmony val = new Harmony("com.yourname.focusanywhere");
val.PatchAll();
((BaseUnityPlugin)this).Logger.LogInfo((object)"Focus Anywhere mod loaded!");
}
}
[HarmonyPatch(typeof(TaskManager), "IsReadyForFreeFocus")]
public class PatchFreeFocus
{
[HarmonyPostfix]
private static void Postfix(ref bool __result)
{
__result = true;
}
}
[HarmonyPatch(typeof(TaskManager), "IsReadyForAreaFocus")]
public class PatchAreaFocus
{
[HarmonyPostfix]
private static void Postfix(ref bool __result)
{
__result = true;
}
}
[HarmonyPatch]
public class PatchIsFocusable
{
[HarmonyTargetMethod]
private static MethodBase TargetMethod()
{
return AccessTools.Method(typeof(PlayerFocusController), "IsFocusable", (Type[])null, (Type[])null);
}
[HarmonyPostfix]
private static void Postfix(ref bool __result)
{
__result = true;
}
}
[HarmonyPatch(typeof(PlayerMovementController), "get_IsLake")]
public class PatchIsLake
{
[HarmonyPostfix]
private static void Postfix(ref bool __result)
{
__result = false;
}
}
namespace ClassLibrary1_nofocuslimits;
public class Class1
{
}