mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 01:50:45 -05:00
Removed redundant code from patch
This commit is contained in:
parent
c2839ed54b
commit
edfe0451ac
@ -41,12 +41,6 @@ namespace SPT.Custom.Patches
|
||||
}
|
||||
|
||||
var isEnemy = false; // default not an enemy
|
||||
if (requester == null)
|
||||
{
|
||||
__result = isEnemy;
|
||||
|
||||
return false; // Skip original
|
||||
}
|
||||
|
||||
// Check existing enemies list
|
||||
// Could also check x.Value.Player?.Id - BSG do it this way
|
||||
@ -55,8 +49,7 @@ namespace SPT.Custom.Patches
|
||||
__result = true;
|
||||
return false; // Skip original
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
// Weird edge case - without this you get spammed with key already in enemy list error when you move around on lighthouse
|
||||
// Make zryachiy use existing isEnemy() code
|
||||
if (__instance.InitialBotType == WildSpawnType.bossZryachiy)
|
||||
@ -96,7 +89,6 @@ namespace SPT.Custom.Patches
|
||||
__instance.AddEnemy(requester, EBotEnemyCause.checkAddTODO);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
__result = isEnemy;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user