mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-12 20:50:44 -05:00
Rename patches to improve clarity
This commit is contained in:
parent
60ccc54220
commit
5e96656c1e
@ -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,
|
||||
* 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()
|
||||
{
|
@ -12,7 +12,7 @@ namespace SPT.Custom.Patches
|
||||
*
|
||||
* 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;
|
||||
|
||||
@ -47,8 +47,7 @@ namespace SPT.Custom.Patches
|
||||
__result = false;
|
||||
}
|
||||
|
||||
// Skip original
|
||||
return false;
|
||||
return false; // Skip original
|
||||
}
|
||||
}
|
||||
}
|
@ -23,8 +23,8 @@ namespace SPT.Custom
|
||||
new EasyBundlePatch().Enable();
|
||||
|
||||
// TODO: check if these patches are needed
|
||||
new BotCalledDataTryCallPatch().Enable();
|
||||
new BotCallForHelpCallBotPatch().Enable();
|
||||
new AddEnemyTryCallFailureFixPatch().Enable();
|
||||
new BotCallForHelpWrongTargetLocationPatch().Enable();
|
||||
new BotOwnerDisposePatch().Enable();
|
||||
new BotsGroupLetBossesShootPmcsPatch().Enable();
|
||||
new AddEnemyToAllGroupsInBotZonePatch().Enable();
|
||||
|
Loading…
x
Reference in New Issue
Block a user