mirror of
https://github.com/NuclearPowered/Reactor.git
synced 2026-10-19 15:51:54 +00:00
22 lines
516 B
C#
22 lines
516 B
C#
using HarmonyLib;
|
|
|
|
namespace Reactor.Debugger.Patches;
|
|
|
|
[HarmonyPatch(typeof(GameStartManager))]
|
|
internal static class GameStartManagerPatches
|
|
{
|
|
[HarmonyPatch(nameof(GameStartManager.Start))]
|
|
[HarmonyPrefix]
|
|
public static void StartPatch(GameStartManager __instance)
|
|
{
|
|
__instance.MinPlayers = 1;
|
|
}
|
|
|
|
[HarmonyPatch(nameof(GameStartManager.Update))]
|
|
[HarmonyPrefix]
|
|
public static void UpdatePatch(GameStartManager __instance)
|
|
{
|
|
__instance.countDownTimer = 0;
|
|
}
|
|
}
|