예제 #1
0
        /// <summary>
        /// Creates a scythe
        /// </summary>
        /// <param name="oneHand"></param>
        /// <param name="name"></param>
        /// <param name="minDmg"></param>
        /// <param name="maxDmg"></param>
        /// <param name="rarity"></param>
        /// <param name="aps"></param>
        /// <param name="nop"></param>
        /// <param name="id"></param>
        /// <returns></returns>
        private Weapon CreateScythe(bool oneHand, string name, int minDmg, int maxDmg, string rarity, double aps, int nop, int id)
        {
            Weapon scythe = new Scythe(name, minDmg, maxDmg, rarity, aps, oneHand, nop, id);

            GetDamage(scythe);
            GetProperties(scythe, oneHand);
            return(scythe);
        }
예제 #2
0
        public static Weapon ForgeScythe(int type)
        {
            Scythe scythe;

            if (type == 0)
            {
                scythe = new Scythe("Scythe", 3, new Rarity());
            }

            if (type == 1)
            {
                scythe = new Scythe("Falx", 10, new Rarity());
            }

            if (type == 2)
            {
                scythe = new Scythe("Shotel", 18, new Rarity());
            }

            else
            {
                scythe = new Scythe("Khopesh", 24, new Rarity());
            }

            if (scythe.Rarity.RarityLevel == 1)
            {
                scythe.AddPrimaryStats(Primary.GetPrimaries(1));
                scythe.AddSecondaryStats(Secondary.GetSecondaries(1));
                scythe.AddMagicStats(Magic.GetMagic(2));
            }

            else if (scythe.Rarity.RarityLevel == 2)
            {
                scythe.AddPrimaryStats(Primary.GetPrimaries(2));
                scythe.AddSecondaryStats(Secondary.GetSecondaries(2));
                scythe.AddMagicStats(Magic.GetMagic(4));
            }

            else if (scythe.Rarity.RarityLevel == 3)
            {
                scythe.AddPrimaryStats(Primary.GetPrimaries(3));
                scythe.AddSecondaryStats(Secondary.GetSecondaries(3));
                scythe.AddMagicStats(Magic.GetMagic(6));
            }

            return(scythe);
        }