0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:10:44 -05:00
2023-03-03 18:52:31 +00:00

26 lines
739 B
C#

using Aki.Common.Http;
using Aki.Reflection.Patching;
using System.Reflection;
using EFT;
using Aki.Reflection.Utils;
using System.Linq;
namespace Aki.Custom.Patches
{
public class QTEPatch : ModulePatch
{
protected override MethodBase GetTargetMethod() => typeof(HideoutPlayerOwner).GetMethod(nameof(HideoutPlayerOwner.StopWorkout));
[PatchPostfix]
private static void PatchPostfix(HideoutPlayerOwner __instance)
{
RequestHandler.PutJson("/client/hideout/workout", new
{
skills = __instance.HideoutPlayer.Skills,
effects = __instance.HideoutPlayer.HealthController.BodyPartEffects
}
.ToJson());
}
}
}