public bool SquadTroopDeployAllowed() { if (this.AreRaidsAccessible() && this.IsRaidAvailable()) { CurrentPlayer currentPlayer = Service.Get <CurrentPlayer>(); RaidVO raidVO = Service.Get <IDataController>().Get <RaidVO>(currentPlayer.CurrentRaidId); return(raidVO.SquadEnabled); } return(false); }
private void CreateScoutHolo() { BuildingLookupController buildingLookupController = Service.Get <BuildingLookupController>(); Entity availableScoutTower = buildingLookupController.GetAvailableScoutTower(); if (availableScoutTower != null && this.AreRaidsAccessible() && this.IsRaidAvailable()) { CurrentPlayer currentPlayer = Service.Get <CurrentPlayer>(); RaidVO raidVO = Service.Get <IDataController>().Get <RaidVO>(currentPlayer.CurrentRaidId); this.scoutHolo = new BuildingHoloEffect(availableScoutTower); this.scoutHolo.CreateGenericHolo(raidVO.BuildingHoloAssetName, "locator_fx"); } }