getVillage($village->wid); $newvillage = $database->getMInfo($_GET['id']); $eigen = $database->getCoor($village->wid); $from = array('x'=>$eigen['x'], 'y'=>$eigen['y']); $to = array('x'=>$newvillage['x'], 'y'=>$newvillage['y']); $artefact = count($database->getOwnUniqueArtefactInfo2($session->uid,2,3,0)); $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,2,1,1)); $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,2,2,0)); if($artefact > 0){ $fastertroops = 3; }else if($artefact1 > 0){ $fastertroops = 2; }else if($artefact2 > 0){ $fastertroops = 1.5; }else{ $fastertroops = 1; } $time = round($generator->procDistanceTime($from,$to,300,0)/$fastertroops); $foolartefact = $database->getFoolArtefactInfo(2,$village->wid,$seesion->uid); if(count($foolartefact) > 0){ foreach($foolartefact as $arte){ if($arte['bad_effect'] == 1){ $time *= $arte['effect2']; }else{ $time /= $arte['effect2']; $time = round($time); } } } echo '
'; echo ''; ?>