mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
19 lines
548 B
C#
19 lines
548 B
C#
using HarmonyLib;
|
|
|
|
namespace Reactor.Debugger.Patches;
|
|
|
|
[HarmonyPatch]
|
|
[HarmonyPriority(Priority.First)]
|
|
internal static class DisableGameEndPatch
|
|
{
|
|
private static bool Enabled => DebuggerConfig.DisableGameEnd.Value;
|
|
|
|
[HarmonyPatch(typeof(LogicGameFlow), nameof(LogicGameFlow.CheckEndCriteria))]
|
|
[HarmonyPatch(typeof(LogicGameFlowNormal), nameof(LogicGameFlow.CheckEndCriteria))]
|
|
[HarmonyPatch(typeof(LogicGameFlowHnS), nameof(LogicGameFlow.CheckEndCriteria))]
|
|
public static bool Prefix()
|
|
{
|
|
return !Enabled;
|
|
}
|
|
}
|