Exemple #1
0
        public BronzeSword() : base()
        {
            _effect = new ItemsEffect();
            this.setItemName("Bronze Sword");
            this.setIsWeapon(true);
            this.setSocketAmount(4);
            _effect.setEffectName("A well balanced sword made of copper and tin, increases mana by 10");
            _effect.setHealthValue(20);
            _effect.setStrengthValue(4);
            _effect.setMagicValue(4);
            _effect.setPhysicalDefense(2);
            _effect.setResistanceDefense(2);
            this.setEffect(_effect);

            ImageBrush  imgBrush = new ImageBrush();
            BitmapImage image    = new BitmapImage(new Uri(@"../../Images/Items/bronzesword.png", UriKind.RelativeOrAbsolute));

            imgBrush.ImageSource = image;
            setImageBrush(imgBrush);
        }
Exemple #2
0
        public Ultima() : base()
        {
            _effect = new ItemsEffect();
            this.setItemName("Ultima");
            this.setIsWeapon(true);
            this.setSocketAmount(15);
            _effect.setEffectName("The Ultimate weapon, guaranteed to increase the power of any warrior or mage");
            _effect.setHealthValue(100);
            _effect.setStrengthValue(40);
            _effect.setMagicValue(40);
            _effect.setPhysicalDefense(14);
            _effect.setResistanceDefense(14);
            this.setEffect(_effect);

            ImageBrush  imgBrush = new ImageBrush();
            BitmapImage image    = new BitmapImage(new Uri(@"../../Images/Items/busterblade.jpg", UriKind.RelativeOrAbsolute));

            imgBrush.ImageSource = image;
            setImageBrush(imgBrush);
        }
        public MythrilSword() : base()
        {
            _effect = new ItemsEffect();
            this.setItemName("Mythril Sword");
            this.setIsWeapon(true);
            this.setSocketAmount(5);
            _effect.setEffectName("A legendary sword made of mythril, increases mana by 20");
            _effect.setHealthValue(60);
            _effect.setStrengthValue(12);
            _effect.setMagicValue(10);
            _effect.setPhysicalDefense(7);
            _effect.setResistanceDefense(7);
            this.setEffect(_effect);

            ImageBrush  imgBrush = new ImageBrush();
            BitmapImage image    = new BitmapImage(new Uri(@"../../Images/Items/Skycutter.png", UriKind.RelativeOrAbsolute));

            imgBrush.ImageSource = image;
            setImageBrush(imgBrush);
        }
        public SteelSword() : base()
        {
            _effect = new ItemsEffect();
            this.setItemName("Steel Sword");
            this.setIsWeapon(true);
            this.setSocketAmount(5);
            _effect.setEffectName("A razor sharp sword made of folded steel, increases mana by 15");
            _effect.setHealthValue(30);
            _effect.setStrengthValue(7);
            _effect.setMagicValue(6);
            _effect.setPhysicalDefense(4);
            _effect.setResistanceDefense(4);
            this.setEffect(_effect);

            ImageBrush  imgBrush = new ImageBrush();
            BitmapImage image    = new BitmapImage(new Uri(@"../../Images/Items/warsword.gif", UriKind.RelativeOrAbsolute));

            imgBrush.ImageSource = image;
            setImageBrush(imgBrush);
        }
        public RuneOfHope() : base()
        {
            _effect = new ItemsEffect();
            this.setItemName("Rune Of Hope");
            this.setIsSocketable(true);
            _effect.setEffectName("Sheds light upon your dark journey");
            _effect.setStrengthValue(10);
            _effect.setMagicValue(10);
            _effect.setResistanceDefense(10);
            _effect.setPhysicalDefense(10);
            _effect.setHealthValue(10);
            _effect.setManaValue(10);
            _effect.setEffectAmount(10);
            this.setEffect(_effect);

            ImageBrush  imgBrush = new ImageBrush();
            BitmapImage image    = new BitmapImage(new Uri(@"../../Images/Items/chamRune.png", UriKind.RelativeOrAbsolute));

            imgBrush.ImageSource = image;
            setImageBrush(imgBrush);
        }
Exemple #6
0
        public AssassinGloves() : base()
        {
            _effect = new ItemsEffect();
            //equipment fields set
            this.setItemName("Assassin Gloves");
            this.setIsGloves(true);
            this.setSocketAmount(2);
            //effects of item are set in itemsEffect class
            _effect.setEffectName("Swift hands deliver death, increases strength by 20");
            _effect.setStrengthValue(3);
            _effect.setPhysicalDefense(3);
            _effect.setManaValue(9);
            _effect.setEffectAmount(5);
            this.setEffect(_effect);

            ImageBrush  imgBrush = new ImageBrush();
            BitmapImage image    = new BitmapImage(new Uri(@"../../Images/Items/gloves2.png", UriKind.RelativeOrAbsolute));

            imgBrush.ImageSource = image;
            setImageBrush(imgBrush);
        }
 public void setEffect(ItemsEffect _effect)
 {
     this._effect = _effect;
 }