From bac205e64089d1eb875cb1d5b763270ad8940301 Mon Sep 17 00:00:00 2001 From: CWX Date: Thu, 4 Jul 2024 22:20:10 +0100 Subject: [PATCH] Fix ScavLateStartPatch --- .../SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs | 6 ++++-- project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs index 77fbe83..738dc4b 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavLateStartPatch.cs @@ -36,11 +36,13 @@ namespace SPT.SinglePlayer.Patches.ScavMode private bool IsTargetMethod(MethodInfo arg) { - // method_43 as of 26535 + // method_47 as of 26535 var parameters = arg.GetParameters(); - return parameters.Length == 2 + return parameters.Length == 4 && parameters[0]?.Name == "timeAndWeather" && parameters[1]?.Name == "timeHasComeScreenController" + && parameters[2]?.Name == "metricsEvents" + && parameters[3]?.Name == "metricsConfig" && arg.ReturnType == typeof(Task); } diff --git a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs index 468dbd9..f1ff6b6 100644 --- a/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs +++ b/project/SPT.SinglePlayer/SPTSingleplayerPlugin.cs @@ -40,7 +40,7 @@ namespace SPT.SinglePlayer new TinnitusFixPatch().Enable(); new MaxBotPatch().Enable(); new SpawnPmcPatch().Enable(); - new PostRaidHealingPricePatch().Enable(); + // new PostRaidHealingPricePatch().Enable(); // TODO: Temp disabled, this might not be needed new EndByTimerPatch().Enable(); new InRaidQuestAvailablePatch().Enable(); new PostRaidHealScreenPatch().Enable();