resarray[$field] ?? 0); $buildingType = $village->resarray[$field . 't'] ?? 0; $currentCapacity = $bid11[$currentLevel]['attri'] * STORAGE_MULTIPLIER; $isMax = $building->isMax($buildingType, $id); $maxLevel = 20; $nextLevelRaw = $currentLevel + 1 + $loopsame + $doublebuild + $master; $nextLevel = min($nextLevelRaw, $maxLevel); $nextCapacity = $bid11[$nextLevel]['attri'] * STORAGE_MULTIPLIER; ?>

:
: