Пример #1
0
 public override object Use(UserInfo obj)
 {
     if (this.Count > 0 && obj.userLocation != obj.mouseLocation)
     {
         this.Count--;
         Grena          = new GrenadeInfo();
         Grena.location = obj.userLocation;
         Grena.owner    = obj.Name;
         Grena.damage   = Damage;
     }
     else
     {
         Grena = null;
     }
     return(Grena);
 }