コード例 #1
0
        public static string ToString(SyndicateMission mission, int index)
        {
            var sb = new StringBuilder();

            sb.AppendLine($"集团: {mission.syndicate}");
            sb.AppendLine();
            var count = 0;

            if (index >= 1 && index <= 5)
            {
                mission.jobs = new[] { mission.jobs[index - 1] };
            }
            foreach (var job in mission.jobs)
            {
                count++;
                if (index >= 1 && index <= 5)
                {
                    sb.AppendLine($"> 赏金{index}等级: {job.enemyLevels[0]} - {job.enemyLevels[1]}");
                }
                else
                {
                    sb.AppendLine($"> 赏金{count}等级: {job.enemyLevels[0]} - {job.enemyLevels[1]}");
                }

                sb.AppendLine("- 奖励:");
                foreach (var reward in job.rewardPool)
                {
                    sb.Append($"[{reward}]");
                }

                sb.AppendLine();
            }

            return(sb.ToString().Trim());
        }
コード例 #2
0
        public static string ToString(SyndicateMission mission)
        {
            var sb = new StringBuilder();

            sb.AppendLine($"集团: {mission.syndicate}");
            sb.AppendLine();
            var count = 0;

            foreach (var job in mission.jobs)
            {
                count++;
                sb.AppendLine($"> 赏金{count}等级: {job.enemyLevels[0]} - {job.enemyLevels[1]}");
                sb.AppendLine("- 奖励:");
                foreach (var reward in job.rewardPool)
                {
                    sb.Append($"[{reward}]");
                }

                sb.AppendLine();
            }


            return(sb.ToString().Trim());
        }