0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 21:10:45 -05:00

Use SkillsDescriptor to serialize skills, remove effects (#7)

Fixes exception at the end of the gym workout, removes effects
This commit is contained in:
Chomp 2024-11-27 12:07:30 +00:00 committed by GitHub
commit ab809c4bc5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -18,8 +18,7 @@ namespace SPT.Custom.Patches
{ {
RequestHandler.PutJson("/client/hideout/workout", new RequestHandler.PutJson("/client/hideout/workout", new
{ {
skills = __instance.HideoutPlayer.Skills, skills = new GClass1956(__instance.HideoutPlayer.Skills)
effects = __instance.HideoutPlayer.HealthController.BodyPartEffects
} }
.ToJson()); .ToJson());
} }