Пример #1
0
 //Rarity can be Basic, Fine, Masterwork, Rare, Exotic or Legendary
 //public Random Random = new Random();
 //For calculating a range of damage
 //Calculates the damage one takes when someone attacks
 public int Attack(Weapon w, Armor a)
 {
     return (w.Damage / a.Protection) * 100;
 }
Пример #2
0
 public Player()
 {
     Armor  = new Pants();
     Weapon = new Dagger();
 }