0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 02:10:45 -05:00
This commit is contained in:
Chomp 2025-02-07 09:35:47 +00:00
parent dc7a4427df
commit d071b202f2
7 changed files with 8 additions and 8 deletions

View File

@ -24,7 +24,7 @@ git config --local user.email "USERNAME@SOMETHING.com"
## Requirements
- Escape From Tarkov 34720
- Escape From Tarkov 34861
- Visual Studio Code -OR- Visual Studio 2022
- .NET 6 SDK
- [PowerShell v7](https://learn.microsoft.com/en-us/powershell/scripting/install/installing-powershell-on-windows)

View File

@ -27,7 +27,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
// this.method_41();
//}
return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_76));
return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_77));
}
[PatchPrefix]

View File

@ -20,7 +20,7 @@ public class DisableDevMaskCheckPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(LocalPlayer.Struct521), nameof(LocalPlayer.Struct521.MoveNext));
return AccessTools.Method(typeof(LocalPlayer.Struct522), nameof(LocalPlayer.Struct522.MoveNext));
}
[PatchTranspiler]

View File

@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
/// </summary>
protected override MethodBase GetTargetMethod()
{
return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_24));
return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_25));
}
[PatchPrefix]

View File

@ -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_48));
_onReadyScreenMethod = AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_49));
_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_75));
return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_76));
}
[PatchTranspiler]
@ -131,7 +131,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
gclass.OnShowNextScreen += LoadOfflineRaidNextScreen;
// `MatchmakerOfflineRaidScreen` OnShowReadyScreen
gclass.OnShowReadyScreen += (OfflineRaidAction)Delegate.CreateDelegate(typeof(OfflineRaidAction), menuController, nameof(MainMenuControllerClass.method_78));
gclass.OnShowReadyScreen += (OfflineRaidAction)Delegate.CreateDelegate(typeof(OfflineRaidAction), menuController, nameof(MainMenuControllerClass.method_79));
gclass.ShowScreen(EScreenState.Queued);
}

View File

@ -17,7 +17,7 @@ public class ScavPrestigeFixPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{
return AccessTools.Constructor(typeof(GClass3693), new Type[] { typeof(Profile), typeof(InventoryController), typeof(GClass3868), typeof(ISession) }, false);
return AccessTools.Constructor(typeof(GClass3693), new Type[] { typeof(Profile), typeof(InventoryController), typeof(GClass3869), typeof(ISession) }, false);
}
[PatchPrefix]

Binary file not shown.