예제 #1
0
        private async Task Scouting(Squad defendingSquad, Squad attackingSquad)
        {
            bool scoutsCaught = _squadService.FightScoutBattle(defendingSquad, attackingSquad);

            if (scoutsCaught)
            {
                await _squadService.KillScouts(attackingSquad);

                int xPBonus = _squadService.GetScoutNumber(attackingSquad) + SCOUT_XP_REWARD_BASE;
                await AddScoutXP(defendingSquad.Army, xPBonus);
            }
            else
            {
                await _squadService.GenerateReport(defendingSquad, attackingSquad);

                int xPBonus = _squadService.GetScoutNumber(defendingSquad) + SCOUT_XP_REWARD_BASE;
                await AddScoutXP(attackingSquad.Army, xPBonus);
            }
        }