0
0
mirror of https://github.com/sp-tarkov/modules.git synced 2025-02-13 09:50:43 -05:00

Last small optimization.

This commit is contained in:
Kaeno 2024-03-17 18:18:03 +00:00
parent aa786f44a0
commit 7650b751ae

View File

@ -1,7 +1,5 @@
using Comfort.Common; using Comfort.Common;
using EFT; using EFT;
using EFT.UI;
using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using UnityEngine; using UnityEngine;
@ -33,6 +31,7 @@ namespace Aki.SinglePlayer.Models.Progression
return; return;
} }
// Get transmitter from players inventory // Get transmitter from players inventory
_transmitter = GetTransmitterFromInventory(); _transmitter = GetTransmitterFromInventory();
@ -44,13 +43,15 @@ namespace Aki.SinglePlayer.Models.Progression
return; return;
} }
GameObject.Find("Attack").SetActive(false); var places = Singleton<IBotGame>.Instance.BotsController.CoversData.AIPlaceInfoHolder.Places;
// Zone was added in a newer version and the gameObject actually has a \ places.First(x => x.name == "Attack").gameObject.SetActive(false);
GameObject.Find("CloseZone\\").SetActive(false);
// Give access to Lightkeepers door // Zone was added in a newer version and the gameObject actually has a \
_gameWorld.BufferZoneController.SetPlayerAccessStatus(_player.ProfileId, true); places.First(y => y.name == "CloseZone\\").gameObject.SetActive(false);
// Give access to Lightkeepers door
_gameWorld.BufferZoneController.SetPlayerAccessStatus(_player.ProfileId, true);
_bridgeMines = _gameWorld.MineManager.Mines; _bridgeMines = _gameWorld.MineManager.Mines;