add: infinite mirors in Manor

This commit is contained in:
2024-09-20 18:10:52 +02:00
parent f32e3b0eb7
commit 15d1a91806
3 changed files with 17 additions and 0 deletions

View File

@@ -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;
}

View File

@@ -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;
}
}
}
}

View File

@@ -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