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