From c2839ed54b5da8ae34ef3beccc1822458caeddf4 Mon Sep 17 00:00:00 2001 From: Dev Date: Thu, 1 Aug 2024 17:36:01 +0100 Subject: [PATCH] Renamed patch --- ...pawnParamPatch.cs => FixPmcSpawnParamsNullErrorPatch.cs} | 6 +++--- project/SPT.Custom/SPTCustomPlugin.cs | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) rename project/SPT.Custom/Patches/{PMCSpawnParamPatch.cs => FixPmcSpawnParamsNullErrorPatch.cs} (85%) diff --git a/project/SPT.Custom/Patches/PMCSpawnParamPatch.cs b/project/SPT.Custom/Patches/FixPmcSpawnParamsNullErrorPatch.cs similarity index 85% rename from project/SPT.Custom/Patches/PMCSpawnParamPatch.cs rename to project/SPT.Custom/Patches/FixPmcSpawnParamsNullErrorPatch.cs index 15368f1..087cd88 100644 --- a/project/SPT.Custom/Patches/PMCSpawnParamPatch.cs +++ b/project/SPT.Custom/Patches/FixPmcSpawnParamsNullErrorPatch.cs @@ -5,7 +5,7 @@ using System.Reflection; namespace SPT.Custom.Patches { - public class PMCSpawnParamPatch : ModulePatch + public class FixPmcSpawnParamsNullErrorPatch : ModulePatch { protected override MethodBase GetTargetMethod() { @@ -15,13 +15,13 @@ namespace SPT.Custom.Patches [PatchPrefix] 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)) { return; } - // is a boss and follower and a pmc + // Is a boss and follower and a pmc if (bot.SpawnProfileData.SpawnParams == null) { bot.SpawnProfileData.SpawnParams = new BotSpawnParams(); diff --git a/project/SPT.Custom/SPTCustomPlugin.cs b/project/SPT.Custom/SPTCustomPlugin.cs index 5e3b2da..9409cba 100644 --- a/project/SPT.Custom/SPTCustomPlugin.cs +++ b/project/SPT.Custom/SPTCustomPlugin.cs @@ -44,8 +44,8 @@ namespace SPT.Custom new QTEPatch().Enable(); new RedirectClientImageRequestsPatch().Enable(); new BotSelfEnemyPatch().Enable(); - new DisableGamemodeButtonPatch().Enable(); - new PMCSpawnParamPatch().Enable(); + new DisableGameModeAdjustButtonPatch().Enable(); + new FixPmcSpawnParamsNullErrorPatch().Enable(); new SetPreRaidSettingsScreenDefaultsPatch().Enable(); new CoreDifficultyPatch().Enable(); new BotDifficultyPatch().Enable();