using System.Reflection; using HarmonyLib; using undead_universal_patch_il2cpp.Core; using undead_universal_patch_il2cpp.Core.Config; namespace undead_universal_patch_il2cpp.Patches; [HarmonyPatch] public class AFKPatch { static PatchTypesResult patchResult = Util.ConfigPreparePatchTypes( PatchConfig.AFKPatch, "Always present, never AFK", "Player", "UpdateAFKStatus" ); static bool Prepare() => patchResult.Success; static MethodBase TargetMethod() => patchResult.Method; static void Prefix(ref bool userIsPresent) { if (PatchConfig.AFKPatch.Value) userIsPresent = true; } }