0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00
modules/project/Aki.SinglePlayer/Patches/RaidFix/InsuredItemManagerStartPatch.cs
chomp 49acd11765 Track insured item values to be used post-raid by server (!16)
Co-authored-by: CWX <CWX@noreply.dev.sp-tarkov.com>
Co-authored-by: Dev <dev@dev.sp-tarkov.com>
Reviewed-on: SPT-AKI/Modules#16
2023-08-05 17:26:09 +00:00

22 lines
521 B
C#

using Aki.Reflection.Patching;
using EFT;
using System.Reflection;
using Aki.SinglePlayer.Utils.Insurance;
namespace Aki.SinglePlayer.Patches.RaidFix
{
public class InsuredItemManagerStartPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return typeof(GameWorld).GetMethod(nameof(GameWorld.OnGameStarted));
}
[PatchPostfix]
public static void PatchPostFix()
{
InsuredItemManager.Instance.Init();
}
}
}