SHA256
44 lines
967 B
C#
44 lines
967 B
C#
using ADOFAIRenderer.Core;
|
|
using HarmonyLib;
|
|
|
|
namespace ADOFAIRenderer.Patch.Game;
|
|
|
|
[HarmonyPatch(typeof(scrController))]
|
|
// ReSharper disable once InconsistentNaming
|
|
public static class scrControllerPatch
|
|
{
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("TogglePauseGame")]
|
|
public static bool PreventPause()
|
|
{
|
|
return !RenderManager.IsActive;
|
|
}
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("PortalTravelAction")]
|
|
public static bool PreventPortalTravel()
|
|
{
|
|
return !RenderManager.IsActive;
|
|
}
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("FailAction")]
|
|
public static bool PreventFailAction()
|
|
{
|
|
return !RenderManager.IsActive;
|
|
}
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("Fail2Action")]
|
|
public static bool PreventFail2Action()
|
|
{
|
|
return !RenderManager.IsActive;
|
|
}
|
|
|
|
[HarmonyPrefix]
|
|
[HarmonyPatch("OnPlayerDied")]
|
|
public static bool PreventPlayerDied()
|
|
{
|
|
return !RenderManager.IsActive;
|
|
}
|
|
} |