diff --git a/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs b/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs index 76b119a..00e6256 100644 --- a/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs +++ b/project/SPT.Custom/Patches/AddTraitorScavsPatch.cs @@ -11,6 +11,11 @@ using System.Reflection; namespace SPT.Custom.Patches { + /// + /// Adds ability for some scavs to be hostile to player scavs + /// Allow player to kill these hostile scavs with no repercussions + /// Gets config data from server + /// public class AddTraitorScavsPatch : ModulePatch { private static int? TraitorChancePercent; diff --git a/project/SPT.Custom/Patches/AddEnemyToAllGroupsInBotZonePatch.cs b/project/SPT.Custom/Patches/AllScavsHostileHostileToPlayerScavPatch.cs similarity index 96% rename from project/SPT.Custom/Patches/AddEnemyToAllGroupsInBotZonePatch.cs rename to project/SPT.Custom/Patches/AllScavsHostileHostileToPlayerScavPatch.cs index f59fa52..80a828e 100644 --- a/project/SPT.Custom/Patches/AddEnemyToAllGroupsInBotZonePatch.cs +++ b/project/SPT.Custom/Patches/AllScavsHostileHostileToPlayerScavPatch.cs @@ -5,7 +5,7 @@ using HarmonyLib; namespace SPT.Custom.Patches { - public class AddEnemyToAllGroupsInBotZonePatch : ModulePatch + public class AllScavsHostileHostileToPlayerScavPatch : ModulePatch { protected override MethodBase GetTargetMethod() { diff --git a/project/SPT.Custom/Patches/CustomAiPatch.cs b/project/SPT.Custom/Patches/CustomAiPatch.cs index 5d3e84a..2e13f02 100644 --- a/project/SPT.Custom/Patches/CustomAiPatch.cs +++ b/project/SPT.Custom/Patches/CustomAiPatch.cs @@ -11,6 +11,13 @@ using SPT.Common.Http; namespace SPT.Custom.Patches { + /// + /// Kitchen sink patch: + /// Converts ai PMC role to random one using data supplied by server + /// Converts ai scav role to random one using data supplied by server + /// Configured AI PMC equipment to be FiR/not FiR to match live behaviour + /// Converts all AI scavs to bosses (if configured in server) + /// public class CustomAiPatch : ModulePatch { private static readonly PmcFoundInRaidEquipment pmcFoundInRaidEquipment = new PmcFoundInRaidEquipment(Logger); diff --git a/project/SPT.Custom/Patches/PmcFirstAidPatch.cs b/project/SPT.Custom/Patches/PmcTakesAgesToHealLimbsPatch.cs similarity index 83% rename from project/SPT.Custom/Patches/PmcFirstAidPatch.cs rename to project/SPT.Custom/Patches/PmcTakesAgesToHealLimbsPatch.cs index 04b4bad..910e0d7 100644 --- a/project/SPT.Custom/Patches/PmcFirstAidPatch.cs +++ b/project/SPT.Custom/Patches/PmcTakesAgesToHealLimbsPatch.cs @@ -8,15 +8,15 @@ using System.Reflection; namespace SPT.Custom.Patches { /// - /// SPT PMC enum value is high enough in wildspawntype it means the first aid class that gets init doesnt have an implementation - /// On heal event, remove all negative effects from limbs e.g. light/heavy bleeds + /// On pmc heal action, remove all negative effects from limbs e.g. light/heavy bleeds + /// Solves PMCs spending multiple minutes healing every limb /// - public class PmcFirstAidPatch : ModulePatch + public class PmcTakesAgesToHealLimbsPatch : ModulePatch { private static Type _targetType; private static readonly string methodName = "FirstAidApplied"; - public PmcFirstAidPatch() + public PmcTakesAgesToHealLimbsPatch() { _targetType = PatchConstants.EftTypes.FirstOrDefault(IsTargetType); } @@ -27,7 +27,7 @@ namespace SPT.Custom.Patches } /// - /// GCLass350 for client version 25782 + /// BotFirstAidClass /// private bool IsTargetType(Type type) { diff --git a/project/SPT.Custom/Patches/SettingsLocationPatch.cs b/project/SPT.Custom/Patches/SaveSettingsToSptFolderPatch.cs similarity index 93% rename from project/SPT.Custom/Patches/SettingsLocationPatch.cs rename to project/SPT.Custom/Patches/SaveSettingsToSptFolderPatch.cs index 58383c8..c1d1489 100644 --- a/project/SPT.Custom/Patches/SettingsLocationPatch.cs +++ b/project/SPT.Custom/Patches/SaveSettingsToSptFolderPatch.cs @@ -9,7 +9,7 @@ namespace SPT.Custom.Patches /// /// Redirect the settings data to save into the SPT folder, not app data /// - public class SettingsLocationPatch : ModulePatch + public class SaveSettingsToSptFolderPatch : ModulePatch { private static readonly string _sptPath = Path.Combine(Environment.CurrentDirectory, "user", "sptSettings"); diff --git a/project/SPT.Custom/SPTCustomPlugin.cs b/project/SPT.Custom/SPTCustomPlugin.cs index bcbaae6..d09b79c 100644 --- a/project/SPT.Custom/SPTCustomPlugin.cs +++ b/project/SPT.Custom/SPTCustomPlugin.cs @@ -27,12 +27,12 @@ namespace SPT.Custom new BotCallForHelpWrongTargetLocationPatch().Enable(); new BotOwnerDisposePatch().Enable(); new BotsGroupLetBossesShootPmcsPatch().Enable(); - new AddEnemyToAllGroupsInBotZonePatch().Enable(); + new AllScavsHostileHostileToPlayerScavPatch().Enable(); new CustomAiPatch().Enable(); new AddTraitorScavsPatch().Enable(); - new PmcFirstAidPatch().Enable(); - new SettingsLocationPatch().Enable(); - new SetLocationIdOnRaidStartPatch().Enable(); + new PmcTakesAgesToHealLimbsPatch().Enable(); + new SaveSettingsToSptFolderPatch().Enable(); + //new SetLocationIdOnRaidStartPatch().Enable(); new RagfairFeePatch().Enable(); new ScavQuestPatch().Enable(); new ScavItemCheckmarkPatch().Enable();