//hero will be attacker, villian will be defender public int Attack(Villian villain) { Random rand = new Random(); int damage = Convert.ToInt32(rand.Next(MaxHitDamage + 1) * EquippedWeapon.DamageMultiplier); System.Threading.Thread.Sleep(600); villain.Life -= damage; Score += damage * 100; //incresing players score return(damage); }
public Planet(string name, Villian villianOccupyingPlanet) { Name = name; VillianOccupyingPlanet = villianOccupyingPlanet; }