0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-12 22:50:44 -05:00

Fixed various bad references

This commit is contained in:
Dev 2024-10-31 17:19:37 +00:00
parent 3de3311257
commit d788abbaa9
6 changed files with 6 additions and 6 deletions

View File

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

View File

@ -61,7 +61,7 @@ namespace SPT.Debugging.Patches
} }
[PatchPrefix] [PatchPrefix]
public static bool PatchPrefix(GClass1602 __instance, BotCreationDataClass data) public static bool PatchPrefix(BotSpawner __instance, BotCreationDataClass data)
{ {
var firstBotRole = data.Profiles[0].Info.Settings.Role; var firstBotRole = data.Profiles[0].Info.Settings.Role;
if (firstBotRole is not (WildSpawnType.pmcBEAR or WildSpawnType.pmcUSEC)) if (firstBotRole is not (WildSpawnType.pmcBEAR or WildSpawnType.pmcUSEC))

View File

@ -8,7 +8,7 @@ namespace SPT.SinglePlayer.Patches.MainMenu
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {
return AccessTools.Method(typeof(GClass1955), nameof(GClass1955.GetBoolForProfile)); return AccessTools.Method(typeof(GClass2023), nameof(GClass2023.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.Class2783), nameof(MerchantsList.Class2783.method_0)); return AccessTools.Method(typeof(MerchantsList.Class2860), nameof(MerchantsList.Class2860.method_0));
} }
[PatchPrefix] [PatchPrefix]

View File

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

View File

@ -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(PlayerVisualRepresentation), typeof(ESideType), typeof(ExitStatus), typeof(TimeSpan), typeof(ISession), typeof(bool) [typeof(Profile), typeof(GClass1917), typeof(ESideType), typeof(ExitStatus), typeof(TimeSpan), typeof(ISession), typeof(bool)
]); ]);
} }