Item: Moved getMaxDurability() to Durable class only, and make it abstract

It's only now used in the Durable class, so it does not make sense to keep it in Item anymore. This is a leftover from the days where Durable did not exist.
This commit is contained in:
Dylan K. Taylor
2018-01-18 14:16:30 +00:00
parent d728154e87
commit efca9f0450
6 changed files with 12 additions and 13 deletions

View File

@ -39,7 +39,7 @@ class Bow extends Tool{
return 200;
}
public function getMaxDurability(){
public function getMaxDurability() : int{
return 385;
}