private void button_Click(object sender, RoutedEventArgs e) { // Dummy Character Init Character Chosimba = new Character("Chosimba", 1000, 500); CharactersLoaded.Add(Chosimba); Boon Speedy = new classes.Boon("Speedy", "GO FAST MAN", Boon.Target.Speed, 10.0, true, false, DateTime.Now.AddMinutes(10)); Boon Cozy = new Boon("Cozy Lava", "Feelin' comfy in a warm, molten blanket.", Boon.Target.Health, 15.0, false, false, DateTime.Now.AddSeconds(5)); Boon Ants = new Boon("FIRE ANTS!", "Itchy as all hell...", Boon.Target.Health, 30.0, false, true, DateTime.Now.AddSeconds(10)); Chosimba.ApplyBoon(Speedy); Chosimba.ApplyBoon(Cozy); Chosimba.ApplyBoon(Ants); // Start Server Tick startSlowpoke(); }
public void ApplyBoon(Boon buff) { Buffs.Add(buff); Console.WriteLine($"{Name} has gained the boon '{buff.Name}'"); }