mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 06:10:45 -05:00
Renamed patch
This commit is contained in:
parent
580e697905
commit
c2839ed54b
@ -5,7 +5,7 @@ using System.Reflection;
|
|||||||
|
|
||||||
namespace SPT.Custom.Patches
|
namespace SPT.Custom.Patches
|
||||||
{
|
{
|
||||||
public class PMCSpawnParamPatch : ModulePatch
|
public class FixPmcSpawnParamsNullErrorPatch : ModulePatch
|
||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
||||||
@ -15,13 +15,13 @@ namespace SPT.Custom.Patches
|
|||||||
[PatchPrefix]
|
[PatchPrefix]
|
||||||
private static void PatchPrefix(BotOwner bot)
|
private static void PatchPrefix(BotOwner bot)
|
||||||
{
|
{
|
||||||
// is a boss and not a follower and not a PMC
|
// Is a boss and not a follower and not a PMC
|
||||||
if (!bot.Profile.Info.Settings.IsBoss() && !CustomAI.AiHelpers.BotIsSptPmc(bot.Profile.Info.Settings.Role, bot))
|
if (!bot.Profile.Info.Settings.IsBoss() && !CustomAI.AiHelpers.BotIsSptPmc(bot.Profile.Info.Settings.Role, bot))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// is a boss and follower and a pmc
|
// Is a boss and follower and a pmc
|
||||||
if (bot.SpawnProfileData.SpawnParams == null)
|
if (bot.SpawnProfileData.SpawnParams == null)
|
||||||
{
|
{
|
||||||
bot.SpawnProfileData.SpawnParams = new BotSpawnParams();
|
bot.SpawnProfileData.SpawnParams = new BotSpawnParams();
|
@ -44,8 +44,8 @@ namespace SPT.Custom
|
|||||||
new QTEPatch().Enable();
|
new QTEPatch().Enable();
|
||||||
new RedirectClientImageRequestsPatch().Enable();
|
new RedirectClientImageRequestsPatch().Enable();
|
||||||
new BotSelfEnemyPatch().Enable();
|
new BotSelfEnemyPatch().Enable();
|
||||||
new DisableGamemodeButtonPatch().Enable();
|
new DisableGameModeAdjustButtonPatch().Enable();
|
||||||
new PMCSpawnParamPatch().Enable();
|
new FixPmcSpawnParamsNullErrorPatch().Enable();
|
||||||
new SetPreRaidSettingsScreenDefaultsPatch().Enable();
|
new SetPreRaidSettingsScreenDefaultsPatch().Enable();
|
||||||
new CoreDifficultyPatch().Enable();
|
new CoreDifficultyPatch().Enable();
|
||||||
new BotDifficultyPatch().Enable();
|
new BotDifficultyPatch().Enable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user