mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 09:30:46 -05:00
Update patches - 34720
This commit is contained in:
parent
a892e6d04a
commit
dd2cdd09e8
@ -11,7 +11,7 @@ namespace SPT.Custom.Patches
|
|||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
return typeof(GClass2452).GetProperty(nameof(GClass2454.Int32_0)).GetGetMethod();
|
return typeof(GClass2454).GetProperty(nameof(GClass2454.Int32_0)).GetGetMethod();
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchPrefix]
|
[PatchPrefix]
|
||||||
|
@ -22,7 +22,7 @@ namespace SPT.SinglePlayer.Patches.Progression
|
|||||||
return AccessTools.Method(
|
return AccessTools.Method(
|
||||||
typeof(SessionResultExitStatus),
|
typeof(SessionResultExitStatus),
|
||||||
nameof(SessionResultExitStatus.Show),
|
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)
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@ namespace SPT.SinglePlayer.Patches.RaidFix
|
|||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
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]
|
[PatchPrefix]
|
||||||
|
@ -32,7 +32,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
|||||||
_ = MatchmakerPlayerControllerClass.MAX_SCAV_COUNT; // UPDATE REFS TO THIS CLASS BELOW !!!
|
_ = MatchmakerPlayerControllerClass.MAX_SCAV_COUNT; // UPDATE REFS TO THIS CLASS BELOW !!!
|
||||||
|
|
||||||
// `MatchmakerInsuranceScreen` OnShowNextScreen
|
// `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");
|
_isLocalField = AccessTools.Field(typeof(MainMenuControllerClass), "bool_0");
|
||||||
_menuControllerField = typeof(TarkovApplication).GetFields(PatchConstants.PrivateFlags).FirstOrDefault(x => x.FieldType == typeof(MainMenuControllerClass));
|
_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()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
// `MatchMakerSelectionLocationScreen` OnShowNextScreen
|
// `MatchMakerSelectionLocationScreen` OnShowNextScreen
|
||||||
return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_74));
|
return AccessTools.Method(typeof(MainMenuControllerClass), nameof(MainMenuControllerClass.method_75));
|
||||||
}
|
}
|
||||||
|
|
||||||
[PatchTranspiler]
|
[PatchTranspiler]
|
||||||
|
@ -17,7 +17,7 @@ public class ScavPrestigeFixPatch : ModulePatch
|
|||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
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]
|
[PatchPrefix]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user