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:
parent
5e96656c1e
commit
24de63b705
@ -11,6 +11,11 @@ using System.Reflection;
|
|||||||
|
|
||||||
namespace SPT.Custom.Patches
|
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
|
public class AddTraitorScavsPatch : ModulePatch
|
||||||
{
|
{
|
||||||
private static int? TraitorChancePercent;
|
private static int? TraitorChancePercent;
|
||||||
|
@ -5,7 +5,7 @@ using HarmonyLib;
|
|||||||
|
|
||||||
namespace SPT.Custom.Patches
|
namespace SPT.Custom.Patches
|
||||||
{
|
{
|
||||||
public class AddEnemyToAllGroupsInBotZonePatch : ModulePatch
|
public class AllScavsHostileHostileToPlayerScavPatch : ModulePatch
|
||||||
{
|
{
|
||||||
protected override MethodBase GetTargetMethod()
|
protected override MethodBase GetTargetMethod()
|
||||||
{
|
{
|
@ -11,6 +11,13 @@ using SPT.Common.Http;
|
|||||||
|
|
||||||
namespace SPT.Custom.Patches
|
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
|
public class CustomAiPatch : ModulePatch
|
||||||
{
|
{
|
||||||
private static readonly PmcFoundInRaidEquipment pmcFoundInRaidEquipment = new PmcFoundInRaidEquipment(Logger);
|
private static readonly PmcFoundInRaidEquipment pmcFoundInRaidEquipment = new PmcFoundInRaidEquipment(Logger);
|
||||||
|
@ -8,15 +8,15 @@ using System.Reflection;
|
|||||||
namespace SPT.Custom.Patches
|
namespace SPT.Custom.Patches
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SPT PMC enum value is high enough in wildspawntype it means the first aid class that gets init doesnt have an implementation
|
/// On pmc heal action, remove all negative effects from limbs e.g. light/heavy bleeds
|
||||||
/// On heal event, remove all negative effects from limbs e.g. light/heavy bleeds
|
/// Solves PMCs spending multiple minutes healing every limb
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class PmcFirstAidPatch : ModulePatch
|
public class PmcTakesAgesToHealLimbsPatch : ModulePatch
|
||||||
{
|
{
|
||||||
private static Type _targetType;
|
private static Type _targetType;
|
||||||
private static readonly string methodName = "FirstAidApplied";
|
private static readonly string methodName = "FirstAidApplied";
|
||||||
|
|
||||||
public PmcFirstAidPatch()
|
public PmcTakesAgesToHealLimbsPatch()
|
||||||
{
|
{
|
||||||
_targetType = PatchConstants.EftTypes.FirstOrDefault(IsTargetType);
|
_targetType = PatchConstants.EftTypes.FirstOrDefault(IsTargetType);
|
||||||
}
|
}
|
||||||
@ -27,7 +27,7 @@ namespace SPT.Custom.Patches
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// GCLass350 for client version 25782
|
/// BotFirstAidClass
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool IsTargetType(Type type)
|
private bool IsTargetType(Type type)
|
||||||
{
|
{
|
@ -9,7 +9,7 @@ namespace SPT.Custom.Patches
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Redirect the settings data to save into the SPT folder, not app data
|
/// Redirect the settings data to save into the SPT folder, not app data
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SettingsLocationPatch : ModulePatch
|
public class SaveSettingsToSptFolderPatch : ModulePatch
|
||||||
{
|
{
|
||||||
private static readonly string _sptPath = Path.Combine(Environment.CurrentDirectory, "user", "sptSettings");
|
private static readonly string _sptPath = Path.Combine(Environment.CurrentDirectory, "user", "sptSettings");
|
||||||
|
|
@ -27,12 +27,12 @@ namespace SPT.Custom
|
|||||||
new BotCallForHelpWrongTargetLocationPatch().Enable();
|
new BotCallForHelpWrongTargetLocationPatch().Enable();
|
||||||
new BotOwnerDisposePatch().Enable();
|
new BotOwnerDisposePatch().Enable();
|
||||||
new BotsGroupLetBossesShootPmcsPatch().Enable();
|
new BotsGroupLetBossesShootPmcsPatch().Enable();
|
||||||
new AddEnemyToAllGroupsInBotZonePatch().Enable();
|
new AllScavsHostileHostileToPlayerScavPatch().Enable();
|
||||||
new CustomAiPatch().Enable();
|
new CustomAiPatch().Enable();
|
||||||
new AddTraitorScavsPatch().Enable();
|
new AddTraitorScavsPatch().Enable();
|
||||||
new PmcFirstAidPatch().Enable();
|
new PmcTakesAgesToHealLimbsPatch().Enable();
|
||||||
new SettingsLocationPatch().Enable();
|
new SaveSettingsToSptFolderPatch().Enable();
|
||||||
new SetLocationIdOnRaidStartPatch().Enable();
|
//new SetLocationIdOnRaidStartPatch().Enable();
|
||||||
new RagfairFeePatch().Enable();
|
new RagfairFeePatch().Enable();
|
||||||
new ScavQuestPatch().Enable();
|
new ScavQuestPatch().Enable();
|
||||||
new ScavItemCheckmarkPatch().Enable();
|
new ScavItemCheckmarkPatch().Enable();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user