BaseInventory: Remove getDefaultSize()

it's possible to want to initialize dynamically-sized inventories which don't have a default size.
This commit is contained in:
Dylan K. Taylor
2019-03-22 19:21:41 +00:00
parent 60225a378f
commit 9904810f24
13 changed files with 17 additions and 64 deletions

View File

@ -43,17 +43,13 @@ class ArmorInventory extends BaseInventory{
public function __construct(Living $holder){
$this->holder = $holder;
parent::__construct();
parent::__construct(4);
}
public function getHolder() : Living{
return $this->holder;
}
public function getDefaultSize() : int{
return 4;
}
public function getHelmet() : Item{
return $this->getItem(self::SLOT_HEAD);
}