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

28 lines
756 B
C#
Raw Normal View History

2024-05-21 19:10:17 +01:00
using SPT.Common.Http;
using SPT.Reflection.Patching;
2023-03-03 18:52:31 +00:00
using System.Reflection;
using EFT;
using HarmonyLib;
2023-03-03 18:52:31 +00:00
2024-05-21 19:10:17 +01:00
namespace SPT.Custom.Patches
2023-03-03 18:52:31 +00:00
{
public class QTEPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(HideoutPlayerOwner), nameof(HideoutPlayerOwner.StopWorkout));
}
2023-03-03 18:52:31 +00:00
[PatchPostfix]
private static void PatchPostfix(HideoutPlayerOwner __instance)
{
RequestHandler.PutJson("/client/hideout/workout", new
{
skills = __instance.HideoutPlayer.Skills,
effects = __instance.HideoutPlayer.HealthController.BodyPartEffects
}
.ToJson());
}
}
}