Add files via upload

This commit is contained in:
manafeng
2025-06-08 03:04:48 +10:00
committed by GitHub
parent aa0eb090ba
commit 360aa1061c
2 changed files with 577 additions and 578 deletions

View File

@@ -91,11 +91,12 @@ namespace DevourClient.Hacks
if (burnAll) if (burnAll)
{ {
_slaughterhouseAltarController.BurnGoat(); _slaughterhouseAltarController.SkipToGoat(10);
} }
else else
{ {
_slaughterhouseAltarController.SkipToGoat(10); _slaughterhouseAltarController.BurnGoat();
} }
break; break;
@@ -162,11 +163,13 @@ namespace DevourClient.Hacks
else else
{ {
MelonLogger.Error("azazelBehaviour is null!"); MelonLogger.Error("azazelBehaviour is null!");
Hacks.Misc.ShowMessageBox("azazelBehaviour is null!");
} }
} }
else else
{ {
MelonLogger.Error("azazel is null!"); MelonLogger.Error("azazel is null!");
Hacks.Misc.ShowMessageBox("azazel is null!");
} }
} }
} }
@@ -473,11 +476,9 @@ namespace DevourClient.Hacks
public static int ShowMessageBox(string message) public static int ShowMessageBox(string message)
{ {
//not used, might be useful, some day Settings.Settings.errorMessage = message;
Il2CppHorror.Menu menu = UnityEngine.Object.FindObjectOfType<Il2CppHorror.Menu>(); Settings.Settings.errorMessageDisplayTime = 0f;
if (menu == null) Settings.Settings.showErrorMessage = true;
return 1;
menu.ShowMessageModal(message);
return 0; return 0;
} }

View File

@@ -22,9 +22,7 @@ namespace DevourClient.Hacks
} }
MelonLoader.MelonLogger.Warning("You need to restart your game for the achievements to be unlocked !!!"); MelonLoader.MelonLogger.Warning("You need to restart your game for the achievements to be unlocked !!!");
MelonLoader.MelonLogger.Warning("You need to restart your game for the achievements to be unlocked !!!"); Hacks.Misc.ShowMessageBox("You need to restart your game for the achievements to be unlocked !!!");
MelonLoader.MelonLogger.Warning("You need to restart your game for the achievements to be unlocked !!!");
MelonLoader.MelonLogger.Warning("You need to restart your game for the achievements to be unlocked !!!");
} }
public static void Doors() public static void Doors()