예제 #1
0
파일: Weapon.cs 프로젝트: 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;
 }
예제 #2
0
파일: Player.cs 프로젝트: djd65/SLDF
 public Player()
 {
     Armor  = new Pants();
     Weapon = new Dagger();
 }