Example #1
0
 public static void Shuxing()
 {
     Console.Clear();
     Console.WriteLine("\t\t\t\t{0}", Instance.name);
     Console.WriteLine("\t\t\t  职业:{0}", GameRes.GetJob(Instance.jobid).name);
     Console.WriteLine("\t\t\t等级:{0}", Instance.level);
     Console.WriteLine("\t\t\t攻击:{0}", Instance.atk);
     Console.WriteLine("\t\t\t血量:{0}", Instance.hp);
     Console.WriteLine("\t\t\t法力值:{0}", Instance.mp);
     Console.WriteLine("\t\t\t金币:{0}", Instance.gold);
     Console.WriteLine("这么弱,还怎么干坦克");
     Console.ReadKey();
     Program.Mainui();
 }
Example #2
0
        public static void CreatPlayer()
        {
            Console.WriteLine("\n\t\t\t创建角色");
            Console.WriteLine("\t角色名称:");
            Console.Write("\t");
            Playerrole.Instance.name = Console.ReadLine();
            Console.WriteLine("\t角色职业:1.战士  2.刺客  3.法师(每个职业成长率不同,技能相同)\n\tps:因为太麻烦了...");
            Console.Write("\t");
            Playerrole.Instance.jobid = int.Parse(Console.ReadLine());
            Console.WriteLine("\t1.确认  2.重新输入");
            Console.Write("\t");
hehe:
            string cs = Console.ReadLine();

            if (cs == "")
            {
                goto hehe;
            }
            int n = int.Parse(cs);

            if (n == 1)
            {
                Instance.basehp   = GameRes.GetJob(Instance.jobid).hp;
                Instance.basemp   = GameRes.GetJob(Instance.jobid).mp;
                Instance.baseatk  = GameRes.GetJob(Instance.jobid).atk;
                Instance.hprate   = GameRes.GetJob(Instance.jobid).hprate;
                Instance.mprate   = GameRes.GetJob(Instance.jobid).mprate;
                Instance.atkrate  = GameRes.GetJob(Instance.jobid).atkrate;
                Playerrole.weapon = GameRes.GetWeapon(1);
                Playerrole.equip1 = GameRes.GetEquip(1);
                Playerrole.equip2 = GameRes.GetEquip(4);
                Playerrole.equip3 = GameRes.GetEquip(6);
                Playerrole.skill1 = GameRes.GetSkill(1);
                Playerrole.skill2 = GameRes.GetSkill(2);
                Playerrole.skill3 = GameRes.GetSkill(3);
                Playerrole.skill4 = GameRes.GetSkill(4);
                Playerrole.skill5 = GameRes.GetSkill(5);

                Program.Mainui();
            }
        }
Example #3
0
 public static void Zhuangbei()
 {
     Console.Clear();
     try
     {
         Console.WriteLine("\t\t\t{0}", Instance.name);
         Console.WriteLine("\t\t\t{0}", GameRes.GetJob(Instance.jobid).name);
         Console.WriteLine("\t\t武器:{0}", Playerrole.weapon.name);
         Console.WriteLine("\t\t胸甲:{0}", equip1.name);
         Console.WriteLine("\t\t腰带:{0}", equip2.name);
         Console.WriteLine("\t\t靴子:{0}", equip3.name);
         Console.WriteLine("ps:可以去商店买装备哦");
         Console.ReadKey();
         Program.Mainui();
     }
     catch
     {
         Console.WriteLine("你啥都没,别康惹");
         Console.ReadKey();
         Program.Mainui();
     }
 }