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

Fixed post-raid json serialization error

This commit is contained in:
Dev 2024-11-01 11:35:41 +00:00
parent 22bd973bb5
commit c2271b0c0e
2 changed files with 6 additions and 3 deletions

View File

@ -3,7 +3,9 @@ using HarmonyLib;
using SPT.Reflection.Patching;
using System.Reflection;
using System.Linq;
using Newtonsoft.Json;
using SPT.Common.Http;
using System;
namespace SPT.SinglePlayer.Patches.ScavMode
@ -22,7 +24,8 @@ namespace SPT.SinglePlayer.Patches.ScavMode
[PatchPrefix]
public static void PatchPrefix(LocalGame __instance)
{
GetProfileAtEndOfRaidPatch.Profile = __instance.Profile_0.ToJson();
//var test = new GClass1962(__instance.Profile_0, GClass1971.Instance);
//Profile = test.ToUnparsedData([]);
}
}
/// <summary>

View File

@ -54,8 +54,8 @@ namespace SPT.SinglePlayer
new EnableRefIntermScreenPatch().Enable();
new EnablePlayerScavPatch().Enable();
new ScavFoundInRaidPatch().Enable();
new GetProfileAtEndOfRaidPatch().Enable();
new FixSavageInventoryScreenPatch().Enable();
// new GetProfileAtEndOfRaidPatch().Enable(); //TODO BROKEN IN 15.5 - FIX OR REMOVE
//new FixSavageInventoryScreenPatch().Enable(); //TODO BROKEN IN 15.5 - FIX OR REMOVE
//new InsuranceScreenPatch().Enable();
new RemoveStashUpgradeLabelPatch().Enable();
new RemoveClothingItemExternalObtainLabelPatch().Enable();