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

Fix ScavLateStartPatch

This commit is contained in:
CWX 2024-07-04 22:20:10 +01:00
parent 34d18d947c
commit bac205e640
2 changed files with 5 additions and 3 deletions

View File

@ -36,11 +36,13 @@ namespace SPT.SinglePlayer.Patches.ScavMode
private bool IsTargetMethod(MethodInfo arg) private bool IsTargetMethod(MethodInfo arg)
{ {
// method_43 as of 26535 // method_47 as of 26535
var parameters = arg.GetParameters(); var parameters = arg.GetParameters();
return parameters.Length == 2 return parameters.Length == 4
&& parameters[0]?.Name == "timeAndWeather" && parameters[0]?.Name == "timeAndWeather"
&& parameters[1]?.Name == "timeHasComeScreenController" && parameters[1]?.Name == "timeHasComeScreenController"
&& parameters[2]?.Name == "metricsEvents"
&& parameters[3]?.Name == "metricsConfig"
&& arg.ReturnType == typeof(Task); && arg.ReturnType == typeof(Task);
} }

View File

@ -40,7 +40,7 @@ namespace SPT.SinglePlayer
new TinnitusFixPatch().Enable(); new TinnitusFixPatch().Enable();
new MaxBotPatch().Enable(); new MaxBotPatch().Enable();
new SpawnPmcPatch().Enable(); new SpawnPmcPatch().Enable();
new PostRaidHealingPricePatch().Enable(); // new PostRaidHealingPricePatch().Enable(); // TODO: Temp disabled, this might not be needed
new EndByTimerPatch().Enable(); new EndByTimerPatch().Enable();
new InRaidQuestAvailablePatch().Enable(); new InRaidQuestAvailablePatch().Enable();
new PostRaidHealScreenPatch().Enable(); new PostRaidHealScreenPatch().Enable();