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

28 lines
755 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 = __instance.HideoutPlayer.Skills,
effects = __instance.HideoutPlayer.HealthController.BodyPartEffects
}
.ToJson());
}
}
}