예제 #1
0
        private int MaxMissionsPossible()
        {
            if (fight == null)
            {
                return(0);
            }
            var maxFights  = resourcesService.ResourceAmount(fight.resourceType) / fight.costs;
            var maxBattles = progressService.Progress.maxOfflineBattlesPerMission;

            return(maxFights < maxBattles ? maxFights : maxBattles);
        }