Added Shears check and drops [gh#749,750]

This commit is contained in:
Shoghi Cervantes 2013-08-25 20:40:25 +02:00
parent 02a8a3e881
commit 30483d5312
2 changed files with 13 additions and 5 deletions

View file

@ -261,6 +261,10 @@ class Item{
return false;
}
}
public function isShears(){
return ($this->id === SHEARS);
}
final public function __toString(){
return "Item ". $this->name ." (".$this->id.":".$this->meta.")";