Exemplo n.º 1
0
Arquivo: Weapon.cs Projeto: 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;
 }
Exemplo n.º 2
0
Arquivo: Player.cs Projeto: djd65/SLDF
 public Player()
 {
     Armor  = new Pants();
     Weapon = new Dagger();
 }