mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-12 01:23:31 +08:00
17 lines
433 B
C#
17 lines
433 B
C#
using AutoPilot.Enums;
|
|
using HarmonyLib;
|
|
|
|
namespace AutoPilot.Patches;
|
|
|
|
[HarmonyPatch(typeof(VFInput))]
|
|
internal class Patch_VFInput
|
|
{
|
|
[HarmonyPatch("_sailSpeedUp", MethodType.Getter)]
|
|
[HarmonyPostfix]
|
|
public static void SailSpeedUp_Postfix(ref bool __result)
|
|
{
|
|
if (AutoPilotPlugin.State == AutoPilotState.Inactive) return;
|
|
if (AutoPilotPlugin.InputSailSpeedUp)
|
|
__result = true;
|
|
}
|
|
} |