From 15d1a918061a227a1d03b7e8df7d56346c490719 Mon Sep 17 00:00:00 2001 From: ALittlePatate Date: Fri, 20 Sep 2024 18:10:52 +0200 Subject: [PATCH] add: infinite mirors in Manor --- DevourClient/ClientMain.cs | 3 +++ DevourClient/Hooks/Hooks.cs | 12 ++++++++++++ README.md | 2 ++ 3 files changed, 17 insertions(+) diff --git a/DevourClient/ClientMain.cs b/DevourClient/ClientMain.cs index 6cfb68e..46473b9 100644 --- a/DevourClient/ClientMain.cs +++ b/DevourClient/ClientMain.cs @@ -46,6 +46,7 @@ namespace DevourClient public static bool exp_modifier = false; public static float exp = 1000f; public static bool _walkInLobby = false; + public static bool infinite_mirors = false; static bool player_esp = false; static bool player_skel_esp = false; static bool player_snapline = false; @@ -859,6 +860,8 @@ namespace DevourClient nb.locomotion.SetPosition(pos, false); } + + infinite_mirors = GUI.Toggle(new Rect(Settings.Settings.x + 370, Settings.Settings.y + 150, 150, 20), infinite_mirors, "Infinite mirors"); break; } diff --git a/DevourClient/Hooks/Hooks.cs b/DevourClient/Hooks/Hooks.cs index ab1a45e..25f9213 100644 --- a/DevourClient/Hooks/Hooks.cs +++ b/DevourClient/Hooks/Hooks.cs @@ -1,4 +1,5 @@ using HarmonyLib; +using Il2Cpp; namespace DevourClient.Hooks { @@ -116,5 +117,16 @@ namespace DevourClient.Hooks return; } } + + [HarmonyPatch(typeof(ManorMirrorController))] + [HarmonyPatch(nameof(ManorMirrorController.IsBroken))] //annotation boiler plate to tell Harmony what to patch. Refer to docs. + static class ManorMirrorController_IsBroken + { + static void Postfix(ref bool __result) + { + if (ClientMain.infinite_mirors) + __result = false; + } + } } } diff --git a/README.md b/README.md index 580ff5f..db41521 100644 --- a/README.md +++ b/README.md @@ -48,6 +48,8 @@ Everything about spoofing ehre (steam name, server name, level...) will persist * Change the player's speed * Fullbright * Create a lobby with no player limit +* Infinite mirors (Manor update) +* Switch between realms (Manor update) ## English Installation Tutorial