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

Rename patches to improve clarity

This commit is contained in:
Dev 2024-07-11 10:49:27 +01:00
parent 60ccc54220
commit 5e96656c1e
3 changed files with 5 additions and 6 deletions

View File

@ -9,7 +9,7 @@ namespace SPT.Custom.Patches
* It's possible for `AddEnemy` to return false, in that case, further code in TryCall will fail, * It's possible for `AddEnemy` to return false, in that case, further code in TryCall will fail,
* so we do the first bit of `TryCall` ourselves, and skip the original function if AddEnemy fails * so we do the first bit of `TryCall` ourselves, and skip the original function if AddEnemy fails
*/ */
internal class BotCalledDataTryCallPatch : ModulePatch public class AddEnemyTryCallFailureFixPatch : ModulePatch
{ {
protected override MethodBase GetTargetMethod() protected override MethodBase GetTargetMethod()
{ {

View File

@ -12,7 +12,7 @@ namespace SPT.Custom.Patches
* *
* This results in both an NRE, and the called bots target location being wrong * This results in both an NRE, and the called bots target location being wrong
*/ */
internal class BotCallForHelpCallBotPatch : ModulePatch public class BotCallForHelpWrongTargetLocationPatch : ModulePatch
{ {
private static FieldInfo _originalPanicTypeField; private static FieldInfo _originalPanicTypeField;
@ -47,8 +47,7 @@ namespace SPT.Custom.Patches
__result = false; __result = false;
} }
// Skip original return false; // Skip original
return false;
} }
} }
} }

View File

@ -23,8 +23,8 @@ namespace SPT.Custom
new EasyBundlePatch().Enable(); new EasyBundlePatch().Enable();
// TODO: check if these patches are needed // TODO: check if these patches are needed
new BotCalledDataTryCallPatch().Enable(); new AddEnemyTryCallFailureFixPatch().Enable();
new BotCallForHelpCallBotPatch().Enable(); new BotCallForHelpWrongTargetLocationPatch().Enable();
new BotOwnerDisposePatch().Enable(); new BotOwnerDisposePatch().Enable();
new BotsGroupLetBossesShootPmcsPatch().Enable(); new BotsGroupLetBossesShootPmcsPatch().Enable();
new AddEnemyToAllGroupsInBotZonePatch().Enable(); new AddEnemyToAllGroupsInBotZonePatch().Enable();