0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 06:50:44 -05:00

27 lines
686 B
C#

using SPT.Common.Http;
using SPT.Reflection.Patching;
using System.Reflection;
using EFT;
using HarmonyLib;
namespace SPT.Custom.Patches
{
public class QTEPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(HideoutPlayerOwner), nameof(HideoutPlayerOwner.StopWorkout));
}
[PatchPostfix]
public static void PatchPostfix(HideoutPlayerOwner __instance)
{
RequestHandler.PutJson("/client/hideout/workout", new
{
skills = new GClass1956(__instance.HideoutPlayer.Skills)
}
.ToJson());
}
}
}