unitarray['u' . $session->tribe . '0'] ?? 0); if ($settlers < 3 || !isset($_GET['id']) || !is_numeric($_GET['id'])) { header("location: dorf1.php"); exit; } $newvillage = $database->getMInfo((int)$_GET['id']); // păstrăm exact verificările originale if (!$newvillage || $newvillage['id'] == 0 || $newvillage['occupied'] > 0 || $newvillage['oasistype'] > 0) { header("location: dorf1.php"); exit; } // resurse rotunjite $wood = round($village->awood); $clay = round($village->aclay); $iron = round($village->airon); $crop = round($village->acrop); // timp de mers pentru coloniști (3 settlers = unitatea 10 a tribului) $troopsTime = $units->getWalkingTroopsTime($village->wid, $newvillage['id'], 0, 0, [300], 0); $time = $database->getArtifactsValueInfluence($session->uid, $village->wid, 2, $troopsTime); $startUnit = ($session->tribe - 1) * 10 + 1; $endUnit = $session->tribe * 10; $hasResources = ($wood >= 750 && $clay >= 750 && $iron >= 750 && $crop >= 750); ?>

0'; } // a 10-a = coloniștii echo $settlers >= 3 ? '' : ''; ?>
username; ?> Found new village (|)
  <?php echo $technology->getUnitName($i); ?>
30
<?php echo DURATION; ?> getTimeFormat($time); ?>
<?php echo LUMBER; ?>750 | <?php echo CLAY; ?>750 | <?php echo IRON; ?>750 | <?php echo CROP; ?>750