mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:10:45 -05:00
Make patches public (!152)
Some patches are `internal` that should be `public` so that mods can disable them when altering AI. Co-authored-by: Lacyway <20912169+Lacyway@users.noreply.github.com> Reviewed-on: SPT/Modules#152 Co-authored-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com> Co-committed-by: Lacyway <lacyway@noreply.dev.sp-tarkov.com>
This commit is contained in:
parent
c93887a7b2
commit
f08011788c
@ -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 BotCallForHelpCallBotPatch : ModulePatch
|
||||
{
|
||||
private static FieldInfo _originalPanicTypeField;
|
||||
|
||||
|
@ -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 BotCalledDataTryCallPatch : ModulePatch
|
||||
{
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
|
@ -9,7 +9,7 @@ namespace SPT.Custom.Patches
|
||||
* BotOwner doesn't call SetOff on the CalledData object when a bot is disposed, this can result
|
||||
* in bots that are no longer alive having their `OnEnemyAdd` method called
|
||||
*/
|
||||
internal class BotOwnerDisposePatch : ModulePatch
|
||||
public class BotOwnerDisposePatch : ModulePatch
|
||||
{
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
|
@ -8,7 +8,7 @@ namespace SPT.Custom.Patches
|
||||
/// <summary>
|
||||
/// Goal: patch removes the current bot from its own enemy list - occurs when adding bots type to its enemy array in difficulty settings
|
||||
/// </summary>
|
||||
internal class BotSelfEnemyPatch : ModulePatch
|
||||
public class BotSelfEnemyPatch : ModulePatch
|
||||
{
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
|
@ -12,7 +12,7 @@ namespace SPT.SinglePlayer.Patches.ScavMode
|
||||
* At the start of a scav raid, copy the PMC encyclopedia to the scav profile, and
|
||||
* make sure the scav knows all of the items it has in its inventory
|
||||
*/
|
||||
internal class ScavEncyclopediaPatch : ModulePatch
|
||||
public class ScavEncyclopediaPatch : ModulePatch
|
||||
{
|
||||
protected override MethodBase GetTargetMethod()
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user