Пример #1
0
 static void Checkstatus(ref Userstatus status, ref GuildManage guildmanage)
 {
     Console.WriteLine($" 체력 : {status.str}");
     Console.WriteLine($" 민첩 : {status.dex}");
     Console.WriteLine($" 지능 : {status.intel}");
     Console.WriteLine($" 돈 : {status.money}골드");
     if (status.rank >= 20)
     {
         Console.WriteLine("하급 귀족");
     }
     else if (status.rank >= 30)
     {
         Console.WriteLine("귀족");
     }
     if (guildmanage.guildrank != " ")
     {
         Console.WriteLine(guildmanage.guildrank);
     }
 }
Пример #2
0
        static void Lobby(ref Userstatus status, ref GuildManage guildmanage)
        {
            while (true)
            {
                Console.WriteLine("[1] 마을 둘러보기");
                Console.WriteLine("[2] 정보 확인");
                string input = Console.ReadLine();
                switch (input)
                {
                case "1":
                    FirstVillage(ref status, ref guildmanage);
                    break;

                case "2":
                    Checkstatus(ref status, ref guildmanage);
                    break;

                default:
                    break;
                }
            }
        }
Пример #3
0
        static void FirstVillage(ref Userstatus status, ref GuildManage guildmanage)
        {
            while (true)
            {
                Console.WriteLine("주점");
                Console.WriteLine("모험가 길드");
                Console.WriteLine("학원");
                Console.WriteLine("");
                string input = Console.ReadLine();
                switch (input)
                {
                case "1":
                    break;

                case "2":
                    Console.WriteLine("모험가 길드로 이동합니다");
                    Guild(ref status, ref guildmanage);
                    break;

                default:
                    break;
                }
            }
        }
Пример #4
0
 static void Guildstat(out GuildManage guildmanage)
 {
     guildmanage.guildcount = 0;
     guildmanage.guildrank  = " ";
 }
Пример #5
0
 static void Guildquestlist(ref Userstatus status, ref GuildManage guildmanage)
 {
     if (guildmanage.guildrank == "F등급 모험가증")
     {
     }
 }
Пример #6
0
        static void Guild(ref Userstatus status, ref GuildManage guildmanage)
        {
            Console.WriteLine("모험가 길드에 도착했습니다.\n어떤 일을 하시겠습니까?");
            while (true)
            {
                Console.WriteLine("다른 할 일이 있습니까?");
                if (guildmanage.guildcount == 0)
                {
                    Console.WriteLine("[1] 길드에 등록하기 (1 골드 소모 )");
                    status.money -= 1;
                    Console.WriteLine("F등급 모험가증을 받았다");
                    guildmanage.guildrank = "F등급 모험가증";
                    while (true)
                    {
                        Console.WriteLine("[1] 질문하기");
                        Console.WriteLine("[2] 모험가 길드에서 나가기");
                        string input = Console.ReadLine();
                        if (input == "1")
                        {
                            Console.WriteLine("[1] 등록하는데 왜 1골드나 되죠?");
                            Console.WriteLine("[2] 제가 할 수 있는 일이 있을까요?");
                            string input2 = Console.ReadLine();
                            switch (input2)
                            {
                            case "1":
                                Console.WriteLine("저희 길드에서는 모험가분이 할 수 있는 일을 중계해드립니다\n낮은 등급에서는 그렇게 많은 돈을 벌지는 못하지만 등급이 오르시면 높은 보상의 일들이 많이 있으므모 결코 손해는 아닙니다.");
                                break;

                            case "2":
                                Console.WriteLine($"현재 {guildmanage.guildrank}으로 할 수 있는 퀘스트입니다.");
                                Guildquestlist(ref status, ref guildmanage);
                                break;

                            default:
                                break;
                            }
                        }
                        else if (input == "2")
                        {
                            Console.WriteLine("모험가 길드에서 나왔습니다. 마을로 돌아왔습니다");
                            FirstVillage(ref status, ref guildmanage);
                        }
                    }
                }
                else
                {
                    Console.WriteLine("[1] 현재 할 수 있는 퀘스트를 보고 싶습니다");
                    Console.WriteLine("[2] 퀘스트를 완료하고 싶습니다");
                    string input = Console.ReadLine();
                    switch (input)
                    {
                    case "1":
                        Console.WriteLine($"현재 {guildmanage.guildrank}으로 할 수 있는 퀘스트입니다.");
                        Guildquestlist(ref status, ref guildmanage);
                        break;

                    case "2":

                        break;

                    default:
                        break;
                    }
                }
            }
        }