mirror of
https://github.com/sp-tarkov/modules.git
synced 2025-02-13 02:30:44 -05:00
Fix lighthouse class build failure
This commit is contained in:
parent
181f2328a5
commit
2a4cc419de
@ -106,7 +106,7 @@ namespace Aki.SinglePlayer.Models.Progression
|
|||||||
|
|
||||||
private void SetupBosses()
|
private void SetupBosses()
|
||||||
{
|
{
|
||||||
foreach (var aiBot in _gameWorld.RegisteredPlayers)
|
foreach (var aiBot in _gameWorld.AllAlivePlayersList)
|
||||||
{
|
{
|
||||||
if (!aiBot.IsYourPlayer)
|
if (!aiBot.IsYourPlayer)
|
||||||
{
|
{
|
||||||
@ -114,9 +114,9 @@ namespace Aki.SinglePlayer.Models.Progression
|
|||||||
if (aiBot.AIData.BotOwner.IsRole(WildSpawnType.bossZryachiy) || aiBot.AIData.BotOwner.IsRole(WildSpawnType.followerZryachiy))
|
if (aiBot.AIData.BotOwner.IsRole(WildSpawnType.bossZryachiy) || aiBot.AIData.BotOwner.IsRole(WildSpawnType.followerZryachiy))
|
||||||
{
|
{
|
||||||
// Subscribe to Bosses OnDeath event
|
// Subscribe to Bosses OnDeath event
|
||||||
aiBot.OnIPlayerDeadOrUnspawn += player1 =>
|
aiBot.OnPlayerDeadOrUnspawn += player1 =>
|
||||||
{
|
{
|
||||||
if (player1?.Profile.KillerId == _gameWorld.MainPlayer.ProfileId)
|
if (player1?.KillerId == _gameWorld.MainPlayer.ProfileId)
|
||||||
{
|
{
|
||||||
_aggressor = true;
|
_aggressor = true;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user