mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 01:30:45 -05:00
34861
This commit is contained in:
parent
dc7a4427df
commit
d071b202f2
@ -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)
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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]
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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.
Loading…
x
Reference in New Issue
Block a user