tribe - 1) * 10 + 1; $end = ($session->tribe - 1) * 10 + 4; $level = (int)$village->resarray['f'.$id]; for ($i = $start; $i <= $end; $i++): if ($i == 4 || $i == 23 || $i == 24) continue; if (!($technology->getTech($i) || $i % 10 == 1)) continue; $unit = ${'u'.$i}; $costWood = (int)$unit['wood'] * 3; $costClay = (int)$unit['clay'] * 3; $costIron = (int)$unit['iron'] * 3; $costCrop = (int)$unit['crop'] * 3; $pop = (int)$unit['pop']; $available = (int)$village->unitarray['u'.$i]; $max = $technology->maxUnit($i, true); $maxPlus = $technology->maxUnitPlus($i); $time = $database->getArtifactsValueInfluence($session->uid, $village->wid, 5, round($unit['time'] * ($bid29[$level]['attri'] / 100) / SPEED)); $totalRequired = (int)($unit['wood'] + $unit['clay'] + $unit['iron'] + $unit['crop']); $showNpc = $session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1 && $village->atotal >= $totalRequired; ?>
<?php echo $technology->getUnitName($i);?> getUnitName($i);?> (: )
| | | | | getTimeFormat($time);?> |<?php echo NPC_TRADE; ?>
()