1.0, 'clay' => 1.0, 'iron' => 1.0, ]; public function getCapacity(): int { return $this->level * $_ENV['BASE_STORAGE_CAPACITY_FACTOR']; } public function getResourceCapacity(string $resourceType): int { $p = Village::getStorageConfig($this->villageId)->$resourceType / 100; return ceil($this->getCapacity() * $p); } }