Ejemplo n.º 1
0
        /// <summary>
        /// Генерирует очки работы
        /// </summary>
        private void GenerateWorkPoints()
        {
            var directorPointsValue = Random.Range(1, _clip.DirectorSkill + 1);

            _clip.DirectorPoints += directorPointsValue;
            directorWorkPoints.Show(directorPointsValue);

            var operatorPointsValue = Random.Range(1, _clip.OperatorSkill + 1);

            _clip.OperatorPoints += operatorPointsValue;
            operatorWorkPoints.Show(operatorPointsValue);

            var playerPointsValue = Random.Range(1, PlayerManager.Data.Stats.Charisma.Value + 1);

            playerWorkPoints.Show(playerPointsValue);

            if (Random.Range(0, 2) > 0)
            {
                _clip.DirectorPoints += playerPointsValue;
            }
            else
            {
                _clip.OperatorPoints += playerPointsValue;
            }
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Генерирует очки работы игрока
        /// </summary>
        private void GenerateRapperWorkPoints()
        {
            int rapperPoints = Random.Range(1, _rapper.Management + 1);

            rapperWorkPoints.Show(rapperPoints);
            _rapperPoints         += rapperPoints;
            rapperPointsLabel.text = $"{_rapperPoints}";
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Генерирует очки работы игрока и рэпера
        /// </summary>
        private void GenerateWorkPoints()
        {
            int playerPoints = Random.Range(1, PlayerManager.Data.Stats.Vocobulary.Value + 1);

            playerPoints += GenerateSkillsPoints();
            playerWorkPoints.Show(playerPoints);
            _playerPoints += playerPoints;

            int rapperPoints = Random.Range(1, _rapper.Vocobulary + 1);

            rapperWorkPoints.Show(rapperPoints);
            _rapperPoints += rapperPoints;
        }
Ejemplo n.º 4
0
        /// <summary>
        /// Создает рандомное количество очков работы в зависимости от скилла персонажа и тиммейта
        /// </summary>
        private static int CreateWorkPoints(
            int playerSkill, WorkPoints playerPoints,
            int rapperSkill, WorkPoints rapperPoints
            )
        {
            var playerValue = Random.Range(1, playerSkill + 1);

            playerPoints.Show(playerValue);

            var rapperValue = Random.Range(1, rapperSkill + 1);

            rapperPoints.Show(rapperValue);

            return(playerValue + rapperValue);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// Создает очки работы по биту
        /// </summary>
        private int CreateBitPoints(PlayerData data)
        {
            var playersBitPoints = Random.Range(1, data.Stats.Bitmaking.Value + 1);

            playerBitWorkPoints.Show(playersBitPoints);

            var bitmakerPoints = 0;

            if (_hasBitmaker)
            {
                bitmakerPoints = Random.Range(1, data.Team.BitMaker.Skill.Value + 1);
                bitmakerWorkPoints.Show(bitmakerPoints);
            }

            return(playersBitPoints + bitmakerPoints);
        }
Ejemplo n.º 6
0
        /// <summary>
        /// Создает очки работы по тексту
        /// </summary>
        private int CreateTextPoints(PlayerData data)
        {
            var playersTextPoints = Random.Range(1, data.Stats.Vocobulary.Value + 1);

            playerTextWorkPoints.Show(playersTextPoints);

            var textwritterPoints = 0;

            if (_hasTextwritter)
            {
                textwritterPoints = Random.Range(1, data.Team.TextWriter.Skill.Value + 1);
                textwritterWorkPoints.Show(textwritterPoints);
            }

            return(playersTextPoints + textwritterPoints);
        }
Ejemplo n.º 7
0
        /// <summary>
        /// Генерирует очки работы
        /// </summary>
        private void GenerateWorkPoints()
        {
            var playerPointsValue = Random.Range(1, PlayerManager.Data.Stats.Charisma.Value + 1);

            playerWorkPoints.Show(playerPointsValue);

            var prManPointsValue = 0;

            if (_hasPrMan)
            {
                prManPointsValue = Random.Range(1, PlayerManager.Data.Team.PrMan.Skill.Value + 1);
                prManWorkPoints.Show(prManPointsValue);
            }

            _social.WorkPoints += playerPointsValue + prManPointsValue;
        }
Ejemplo n.º 8
0
        /// <summary>
        /// Создает очки работы менеджмента
        /// </summary>
        private int CreateManagementPoints(PlayerData data)
        {
            var playersManagementPoints = Random.Range(1, data.Stats.Management.Value + 1);

            playerManagementWorkPoints.Show(playersManagementPoints);

            var managerPoints = 0;

            if (_hasPrMan)
            {
                managerPoints = Random.Range(1, data.Team.Manager.Skill.Value + 1);
                managerWorkPoints.Show(managerPoints);
            }

            return(playersManagementPoints + managerPoints);
        }
Ejemplo n.º 9
0
        /// <summary>
        /// Создает очки работы маркетинга
        /// </summary>
        private int CreatePrPoints(PlayerData data)
        {
            var playersMarketingPoints = Random.Range(1, data.Stats.Marketing.Value + 1);

            playerPrWorkPoints.Show(playersMarketingPoints);

            var prManPoints = 0;

            if (_hasPrMan)
            {
                prManPoints = Random.Range(1, data.Team.PrMan.Skill.Value + 1);
                prmanWorkPoints.Show(prManPoints);
            }

            return(playersMarketingPoints + prManPoints);
        }
Ejemplo n.º 10
0
        /// <summary>
        /// Генерирует очки работы игрока
        /// </summary>
        private void GeneratePlayerWorkPoints()
        {
            int playerPoints = Random.Range(1, PlayerManager.Data.Stats.Management.Value + 1);

            playerWorkPoints.Show(playerPoints);

            int managerPoints = 0;

            if (_hasManager)
            {
                managerPoints = Random.Range(1, PlayerManager.Data.Team.Manager.Skill.Value + 1);
                managerWorkPoints.Show(managerPoints);
            }

            _playerPoints += playerPoints + managerPoints;
            managementPointsLabel.text = $"{_playerPoints}";
        }