public override void Effect(Person damager, Person aim) { var rand = new Random(); var damage = rand.Next((int)(damager.AirMastery * damager.GetIntelligence() / 5), damager.GetIntelligence() / 4); aim.CurrHealth -= damage; aim.Characs.Agility = 0; Console.ForegroundColor = ConsoleColor.Cyan; Console.WriteLine(Name + " of " + damager.Name + " damages " + aim.Name + " for " + damage + " damages" + "(" + aim.CurrHealth + ")"); Console.WriteLine(aim.Name + "'s agility is become 0"); Console.ResetColor(); damager.AirMastery += Up * damage; if (damager.AirMastery >= 1) damager.AirMastery = 1; }
public override void Effect(Person damager, Person aim) { var rand = new Random(); var damage = rand.Next((int)(damager.FireMastery * damager.GetIntelligence()), damager.GetIntelligence()*2); aim.CurrHealth -= damage; Console.ForegroundColor = ConsoleColor.Red; Console.WriteLine(Name + " of " + damager.Name + " damages " + aim.Name + " for " + damage + " damages" + "(" + aim.CurrHealth + ")"); Console.ResetColor(); damager.FireMastery += Up * damage; if (damager.FireMastery >= 1) damager.FireMastery = 1; }
public override void Effect(Person damager, Person aim) { var rand = new Random(); var damage = rand.Next((int)(damager.WaterMastery * damager.GetIntelligence() / 2), damager.GetIntelligence()); aim.CurrHealth -= damage; aim.Characs.Strength -= 1; aim.Characs.Agility -= 1; Console.ForegroundColor = ConsoleColor.Blue; Console.WriteLine(Name + " of " + damager.Name + " damages " + aim.Name + " for " + damage + " damages" + "(" + aim.CurrHealth + ")"); Console.WriteLine(aim.Name + "'s strength is reduced by 1"); Console.WriteLine(aim.Name + "'s agility is reduced by 1"); Console.ResetColor(); damager.WaterMastery += Up * damage; if (damager.WaterMastery >= 1) damager.WaterMastery = 1; }
public override void Effect(Person damager, Person aim) { var rand = new Random(); var areg = rand.Next((int)(damager.NecroMastery * damager.GetIntelligence())/5, damager.GetIntelligence()/5); aim.WarRegen -= areg; aim.Armor -= 1; Console.ForegroundColor = ConsoleColor.Green; Console.WriteLine(Name + " of " + damager.Name + " poisoned " + aim.Name + " for " + areg); Console.WriteLine(aim.Name + "'s armor is reduced by 1"); Console.ResetColor(); damager.NecroMastery += Up * areg; if (damager.NecroMastery >= 1) damager.NecroMastery = 1; }