Example #1
0
File: Weapon.cs Project: djd65/SLDF
 //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;
 }
Example #2
0
File: Player.cs Project: djd65/SLDF
 public Player()
 {
     Armor  = new Pants();
     Weapon = new Dagger();
 }