Ejemplo n.º 1
0
        public Armour(Armour a, Item i)
        {
            this.Item = i;
            this.Part = a.Part;
            this.Mult = a.Mult;

            this.Stand = a.Stand;
            this.Attack = a.Attack;
        }
Ejemplo n.º 2
0
        public Armour(Texture2D stndTex, Texture2D attTex, string name, ItemId id, ArmourParts part, float mult, bool add)
        {
            // Add its item to the Item list
            Item i = new Item(id, name, stndTex, Item.Equip);
            if (add) GameScreen.Items.Add(id, i);

            this.Item = i;
            this.Part = part;
            this.Mult = mult;

            this.Stand = stndTex;
            this.Attack = attTex;
        }
Ejemplo n.º 3
0
        public Armour(Item i)
        {
            if (i != null) {
                Armour a = GameScreen.Armours[i.Id];
                this.Item = i;
                this.Part = a.Part;
                this.Mult = a.Mult;

                this.Stand = a.Stand;
                this.Attack = a.Attack;
            } else {
                this.Item = GameScreen.Items[ItemId.None];
                this.Part = ArmourParts.Body;
                this.Mult = 0;

                this.Stand = null;
                this.Attack = null;
            }
        }
Ejemplo n.º 4
0
        public Armour(Texture2D stndTex, Texture2D attTex, Item i, ArmourParts part, float mult)
        {
            this.Item = i;
            this.Part = part;
            this.Mult = mult;

            this.Stand = stndTex;
            this.Attack = attTex;
        }