0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 04:50:45 -05:00
This commit is contained in:
Chomp 2025-01-30 12:18:13 +00:00
parent 249123bb48
commit a892e6d04a
14 changed files with 19 additions and 20 deletions

View File

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

View File

@ -11,7 +11,7 @@ namespace SPT.Custom.Patches
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return typeof(GClass2452).GetProperty(nameof(GClass2452.Int32_0)).GetGetMethod(); return typeof(GClass2452).GetProperty(nameof(GClass2454.Int32_0)).GetGetMethod();
} }
[PatchPrefix] [PatchPrefix]

View File

@ -13,11 +13,11 @@ namespace SPT.Custom.Patches
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return AccessTools.Method(typeof(InventoryScreen.Class2751), nameof(InventoryScreen.Class2751.MoveNext)); return AccessTools.Method(typeof(InventoryScreen.Class2752), nameof(InventoryScreen.Class2752.MoveNext));
} }
[PatchPostfix] [PatchPostfix]
public static void Postfix(InventoryScreen.Class2751 __instance) public static void Postfix(InventoryScreen.Class2752 __instance)
{ {
var inventoryScreen = __instance.inventoryScreen_0; var inventoryScreen = __instance.inventoryScreen_0;
var tabDictionary = Traverse.Create(inventoryScreen).Field<IReadOnlyDictionary<EInventoryTab, Tab>>("_tabDictionary").Value; var tabDictionary = Traverse.Create(inventoryScreen).Field<IReadOnlyDictionary<EInventoryTab, Tab>>("_tabDictionary").Value;

View File

@ -13,7 +13,7 @@ namespace SPT.Custom.Patches
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return typeof(GClass2456).GetMethod(nameof(GClass2456.Dispose)); return typeof(GClass2458).GetMethod(nameof(GClass2458.Dispose));
} }
[PatchPrefix] [PatchPrefix]

View File

@ -18,7 +18,7 @@ namespace SPT.Custom.Patches
{ {
RequestHandler.PutJson("/client/hideout/workout", new RequestHandler.PutJson("/client/hideout/workout", new
{ {
skills = new GClass1985(__instance.HideoutPlayer.Skills) skills = new GClass1987(__instance.HideoutPlayer.Skills)
} }
.ToJson()); .ToJson());
} }

View File

@ -5,7 +5,6 @@ using BepInEx.Bootstrap;
using BepInEx.Logging; using BepInEx.Logging;
using Comfort.Common; using Comfort.Common;
using EFT.UI; using EFT.UI;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using SPT.Custom.Patches; using SPT.Custom.Patches;
@ -41,7 +40,7 @@ namespace SPT.Custom.Utils
private ManualLogSource _logger; private ManualLogSource _logger;
// This GClass can be found by looking at ErrorScreen.cs and seeing what the ErrorClass class inherits from: `Window<GClass####>` // This GClass can be found by looking at ErrorScreen.cs and seeing what the ErrorClass class inherits from: `Window<GClass####>`
private GClass3540 _betaMessageContext; private GClass3543 _betaMessageContext;
public void Start() public void Start()
{ {

View File

@ -38,8 +38,8 @@ public class DumplyLibMono : MonoBehaviour
public LocalRaidSettings _localRaidSettings; public LocalRaidSettings _localRaidSettings;
public RaidSettings _raidSettings; public RaidSettings _raidSettings;
public LocationSettingsClass _locationSettings; public LocationSettingsClass _locationSettings;
public GClass1952 _endRaidClass; public GClass1954 _endRaidClass;
public GClass1991 _completeProfile; public GClass1993 _completeProfile;
public GClass822 _parsedDataProfile; public GClass822 _parsedDataProfile;
// Class references are as of assembly 33420 - 26/12/2024 // Class references are as of assembly 33420 - 26/12/2024
@ -91,7 +91,7 @@ public class DumplyLibMono : MonoBehaviour
PlayersSpawnPlace = EPlayersSpawnPlace.SamePlace PlayersSpawnPlace = EPlayersSpawnPlace.SamePlace
}; };
_locationSettings = _session.LocationSettings; _locationSettings = _session.LocationSettings;
_endRaidClass = new GClass1952 _endRaidClass = new GClass1954
{ {
profile = null, profile = null,
result = ExitStatus.Left, result = ExitStatus.Left,
@ -104,7 +104,7 @@ public class DumplyLibMono : MonoBehaviour
InsuredItems = new InsuredItemClass[] {}, InsuredItems = new InsuredItemClass[] {},
ProfileId = "" ProfileId = ""
}; };
_completeProfile = new GClass1991(_session.Profile, GClass2000.Instance); _completeProfile = new GClass1993(_session.Profile, GClass2002.Instance);
_parsedDataProfile = _completeProfile.ToUnparsedData(); _parsedDataProfile = _completeProfile.ToUnparsedData();
_endRaidClass.profile = _completeProfile.ToUnparsedData(); _endRaidClass.profile = _completeProfile.ToUnparsedData();

View File

@ -8,7 +8,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return AccessTools.Method(typeof(GClass2057), nameof(GClass2057.GetBoolForProfile)); return AccessTools.Method(typeof(GClass2059), nameof(GClass2059.GetBoolForProfile));
} }
[PatchPrefix] [PatchPrefix]

View File

@ -12,7 +12,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return AccessTools.Method(typeof(MerchantsList.Class2906), nameof(MerchantsList.Class2906.method_0)); return AccessTools.Method(typeof(MerchantsList.Class2907), nameof(MerchantsList.Class2907.method_0));
} }
[PatchPrefix] [PatchPrefix]

View File

@ -15,7 +15,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
} }
[PatchPrefix] [PatchPrefix]
private static void Prefix(ref ClothingItem.GClass3521 offer) private static void Prefix(ref ClothingItem.GClass3524 offer)
{ {
offer.Offer.ExternalObtain = false; offer.Offer.ExternalObtain = false;
} }

View File

@ -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.GClass1775.ShowIncompatibleNotification)); return typeof(Player.FirearmController.GClass1775).GetMethod(nameof(Player.FirearmController.GClass1777.ShowIncompatibleNotification));
} }
[PatchPrefix] [PatchPrefix]

View File

@ -17,11 +17,11 @@ public class ScavPrestigeFixPatch : ModulePatch
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return AccessTools.Constructor(typeof(GClass3690), new Type[] { typeof(Profile), typeof(InventoryController), typeof(GClass3865), typeof(ISession) }, false); return AccessTools.Constructor(typeof(GClass3693), new Type[] { typeof(Profile), typeof(InventoryController), typeof(GClass3865), typeof(ISession) }, false);
} }
[PatchPrefix] [PatchPrefix]
public static void PatchPrefix(GClass3690 __instance, ref Profile profile) public static void PatchPrefix(GClass3693 __instance, ref Profile profile)
{ {
if (profile.Side == EPlayerSide.Savage) if (profile.Side == EPlayerSide.Savage)
{ {

View File

@ -13,7 +13,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
/// </summary> /// </summary>
public class GetProfileAtEndOfRaidPatch : ModulePatch public class GetProfileAtEndOfRaidPatch : ModulePatch
{ {
public static GClass1991 ProfileDescriptor { get; private set; } public static GClass1993 ProfileDescriptor { get; private set; }
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
@ -23,7 +23,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
[PatchPrefix] [PatchPrefix]
public static void PatchPrefix(LocalGame __instance) public static void PatchPrefix(LocalGame __instance)
{ {
ProfileDescriptor = new GClass1991(__instance.Profile_0, GClass2000.Instance); ProfileDescriptor = new GClass1993(__instance.Profile_0, GClass2002.Instance);
} }
} }
/// <summary> /// <summary>

Binary file not shown.