Add Renderer Feature

This commit is contained in:
copecone committed 2026-05-22 19:31:44 +09:00
1 parent c9314c264d
commit 2556bc7f62
13 files changed
+727 -21

No files matched your search

+29
View File
@@ -1,4 +1,5 @@
using HarmonyLib;
using MelonLoader;
namespace ADOFAIRenderer.Patch.ClassPatch
{
@@ -12,5 +13,33 @@ namespace ADOFAIRenderer.Patch.ClassPatch
{
return !RenderMod.IsRendering;
}
[HarmonyPrefix]
[HarmonyPatch("PortalTravelAction")]
public static bool PreventPortalTravel()
{
return !RenderMod.IsRendering;
}
[HarmonyPrefix]
[HarmonyPatch("FailAction")]
public static bool PreventFailAction()
{
return !RenderMod.IsRendering;
}
[HarmonyPrefix]
[HarmonyPatch("Fail2Action")]
public static bool PreventFail2Action()
{
return !RenderMod.IsRendering;
}
[HarmonyPrefix]
[HarmonyPatch("OnPlayerDied")]
public static bool PreventPlayerDied()
{
return !RenderMod.IsRendering;
}
}
}