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; }
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; }
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; }
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; }
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; } }