Esempio n. 1
0
        private void CalculateFinalReward( )
        {
            _distanceReward = _missionInProgress.CollectDistanceReward();

            _difficultyReward = _missionInProgress.GetDifficultyReward;
            _rewardByTargets  = _missionInProgress.CollectRewardByTargets();
            var netReward = _distanceReward + _rewardByTargets + _difficultyReward;

            _rewardSum        = netReward * ZoneFactor;
            _riskCompensation = _rewardSum - netReward;

            if (MissionResolveTester.isTestMode)
            {
                return;
            }

            Logger.Info("mission reward:" + _rewardSum + " byTargets:" + _rewardByTargets + " distanceReward:" + _distanceReward + " difficultyReward:" + _difficultyReward + " for " + _missionInProgress);
        }