示例#1
0
        /// <summary>
        /// Creates a mighty weapon
        /// </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 CreateMightyWeapon(bool oneHand, string name, int minDmg, int maxDmg, string rarity, double aps, int nop, int id)
        {
            Weapon mighty = new MightyWeapon(name, minDmg, maxDmg, rarity, aps, oneHand, nop, id);

            GetDamage(mighty);
            GetProperties(mighty, oneHand);
            return(mighty);
        }
示例#2
0
        public static Weapon ForgeMightyWeap(int type)
        {
            MightyWeapon mightyWeapon;

            if (type == 0)
            {
                mightyWeapon = new MightyWeapon("Carver", 10, new Rarity());
            }

            if (type == 1)
            {
                mightyWeapon = new MightyWeapon("Fjord Cutter", 14, new Rarity());
            }

            if (type == 2)
            {
                mightyWeapon = new MightyWeapon("War Blade", 30, new Rarity());
            }

            else
            {
                mightyWeapon = new MightyWeapon("Machete", 28, new Rarity());
            }

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

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

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

            return(mightyWeapon);
        }