resarray[$field] ?? 0); $hasBlacksmith = $building->getTypeLevel(12) > 0; ?>