static void Main(string[] args) { // Create Gears Gear gear1 = new Gear { Name = "Blue pants", Level = 99, Type = "Light armor", Stats = "+189 int, +1400 MaxMP" }; Gear gear2 = new Gear { Name = "Blue top", Level = 100, Type = "Light armor", Stats = "+230 Haste, +100 Crit" }; Gear gear3 = new Gear { Name = "Amazing Staff", Level = 100, Type = "Staff", Stats = "+250 int" }; Gear gear4 = new Gear { Name = "Blue shoes", Level = 99, Type = "Light armor", Stats = "+90 int, +130 Crit" }; // Create a Character Creature creature = new Creature { Name = "Pikseli", Level = 100, Class = "Mage" }; creature.AddGear(gear1); creature.AddGear(gear2); creature.AddGear(gear3); creature.AddGear(gear4); Console.WriteLine(creature.ToString()); }
public void AddGear(Gear gear) { Gears.Add(gear); }