From dd2cdd09e834856fc5728dff6835c6ae8e02d5bc Mon Sep 17 00:00:00 2001 From: Archangel Date: Thu, 30 Jan 2025 13:58:29 +0100 Subject: [PATCH] Update patches - 34720 --- project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs | 2 +- .../Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs | 2 +- .../FirearmControllerShowIncompatibleNotificationClass.cs | 2 +- .../Patches/ScavMode/LoadOfflineRaidScreenPatch.cs | 4 ++-- .../SPT.SinglePlayer/Patches/ScavMode/ScavPrestigeFixPatch.cs | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs b/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs index 39c604b..74dc809 100644 --- a/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs +++ b/project/SPT.Custom/Patches/AllowAirdropsInPvEPatch.cs @@ -11,7 +11,7 @@ namespace SPT.Custom.Patches { protected override MethodBase GetTargetMethod() { - return typeof(GClass2452).GetProperty(nameof(GClass2454.Int32_0)).GetGetMethod(); + return typeof(GClass2454).GetProperty(nameof(GClass2454.Int32_0)).GetGetMethod(); } [PatchPrefix] diff --git a/project/SPT.SinglePlayer/Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs b/project/SPT.SinglePlayer/Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs index eb61ccb..763e914 100644 --- a/project/SPT.SinglePlayer/Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs +++ b/project/SPT.SinglePlayer/Patches/Progression/FixPostScavRaidXpShowingZeroPatch.cs @@ -22,7 +22,7 @@ namespace SPT.SinglePlayer.Patches.Progression return AccessTools.Method( typeof(SessionResultExitStatus), nameof(SessionResultExitStatus.Show), - [typeof(Profile), typeof(GClass1945), typeof(ESideType), typeof(ExitStatus), typeof(TimeSpan), typeof(ISession), typeof(bool) + [typeof(Profile), typeof(GClass1947), typeof(ESideType), typeof(ExitStatus), typeof(TimeSpan), typeof(ISession), typeof(bool) ]); } diff --git a/project/SPT.SinglePlayer/Patches/RaidFix/FirearmControllerShowIncompatibleNotificationClass.cs b/project/SPT.SinglePlayer/Patches/RaidFix/FirearmControllerShowIncompatibleNotificationClass.cs index 4b3df40..86e6efa 100644 --- a/project/SPT.SinglePlayer/Patches/RaidFix/FirearmControllerShowIncompatibleNotificationClass.cs +++ b/project/SPT.SinglePlayer/Patches/RaidFix/FirearmControllerShowIncompatibleNotificationClass.cs @@ -11,7 +11,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix { protected override MethodBase GetTargetMethod() { - return typeof(Player.FirearmController.GClass1775).GetMethod(nameof(Player.FirearmController.GClass1777.ShowIncompatibleNotification)); + return typeof(Player.FirearmController.GClass1777).GetMethod(nameof(Player.FirearmController.GClass1777.ShowIncompatibleNotification)); } [PatchPrefix] diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs index 41bc15e..af359e9 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/LoadOfflineRaidScreenPatch.cs @@ -32,7 +32,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode _ = MatchmakerPlayerControllerClass.MAX_SCAV_COUNT; // UPDATE REFS TO THIS CLASS BELOW !!! // `MatchmakerInsuranceScreen` OnShowNextScreen - _onReadyScreenMethod = AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_47)); + _onReadyScreenMethod = AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_48)); _isLocalField = AccessTools.Field(typeof(MainMenuControllerClass), "bool_0"); _menuControllerField = typeof(TarkovApplication).GetFields(PatchConstants.PrivateFlags).FirstOrDefault(x => x.FieldType == typeof(MainMenuControllerClass)); @@ -46,7 +46,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode protected override MethodBase GetTargetMethod() { // `MatchMakerSelectionLocationScreen` OnShowNextScreen - return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_74)); + return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_75)); } [PatchTranspiler] diff --git a/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrestigeFixPatch.cs b/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrestigeFixPatch.cs index 49b4c55..78b2358 100644 --- a/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrestigeFixPatch.cs +++ b/project/SPT.SinglePlayer/Patches/ScavMode/ScavPrestigeFixPatch.cs @@ -17,7 +17,7 @@ public class ScavPrestigeFixPatch : ModulePatch { protected override MethodBase GetTargetMethod() { - return AccessTools.Constructor(typeof(GClass3693), new Type[] { typeof(Profile), typeof(InventoryController), typeof(GClass3865), typeof(ISession) }, false); + return AccessTools.Constructor(typeof(GClass3693), new Type[] { typeof(Profile), typeof(InventoryController), typeof(GClass3868), typeof(ISession) }, false); } [PatchPrefix]