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:
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,
|
* 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()
|
||||||
{
|
{
|
@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user