0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 01:30:45 -05:00

Rename various patches for clarity

Disable `SetLocationIdOnRaidStartPatch` as it's not unnecessary
This commit is contained in:
Dev 2024-07-11 11:18:00 +01:00
parent 5e96656c1e
commit 24de63b705
6 changed files with 23 additions and 11 deletions

View File

@ -11,6 +11,11 @@ using System.Reflection;
namespace SPT.Custom.Patches
{
/// <summary>
/// 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
/// </summary>
public class AddTraitorScavsPatch : ModulePatch
{
private static int? TraitorChancePercent;

View File

@ -5,7 +5,7 @@ using HarmonyLib;
namespace SPT.Custom.Patches
{
public class AddEnemyToAllGroupsInBotZonePatch : ModulePatch
public class AllScavsHostileHostileToPlayerScavPatch : ModulePatch
{
protected override MethodBase GetTargetMethod()
{

View File

@ -11,6 +11,13 @@ using SPT.Common.Http;
namespace SPT.Custom.Patches
{
/// <summary>
/// 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)
/// </summary>
public class CustomAiPatch : ModulePatch
{
private static readonly PmcFoundInRaidEquipment pmcFoundInRaidEquipment = new PmcFoundInRaidEquipment(Logger);

View File

@ -8,15 +8,15 @@ using System.Reflection;
namespace SPT.Custom.Patches
{
/// <summary>
/// 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
/// </summary>
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
}
/// <summary>
/// GCLass350 for client version 25782
/// BotFirstAidClass
/// </summary>
private bool IsTargetType(Type type)
{

View File

@ -9,7 +9,7 @@ namespace SPT.Custom.Patches
/// <summary>
/// Redirect the settings data to save into the SPT folder, not app data
/// </summary>
public class SettingsLocationPatch : ModulePatch
public class SaveSettingsToSptFolderPatch : ModulePatch
{
private static readonly string _sptPath = Path.Combine(Environment.CurrentDirectory, "user", "sptSettings");

View File

@ -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();