getOwnUniqueArtefactInfo2($session->uid,5,3,0)); $artefact1 = count($database->getOwnUniqueArtefactInfo2($village->wid,5,1,1)); $artefact2 = count($database->getOwnUniqueArtefactInfo2($session->uid,5,2,0)); if($artefact > 0){ $artefact_bonus = 2; $artefact_bonus2 = 1; }else if($artefact1 > 0){ $artefact_bonus = 2; $artefact_bonus2 = 1; }else if($artefact2 > 0){ $artefact_bonus = 4; $artefact_bonus2 = 3; }else{ $artefact_bonus = 1; $artefact_bonus2 = 1; } /*-------------------------------------------------------*\ | ********* DO NOT REMOVE THIS COPYRIGHT NOTICE ********* | +---------------------------------------------------------+ | Developed by: Manni < manuel_mannhardt@web.de > | | Dzoki < dzoki.travian@gmail.com > | | Copyright: TravianX Project All rights reserved | \*-------------------------------------------------------*/ if($hero_info['unit'] == 1) { $name = U1; } else if($hero_info['unit'] == 2) { $name = U2; } else if($hero_info['unit'] == 3) { $name = U3; } else if($hero_info['unit'] == 5) { $name = U5; } else if($hero_info['unit'] == 6) { $name = U6; } else if($hero_info['unit'] == 11) { $name = U11; } else if($hero_info['unit'] == 12) { $name = U12; } else if($hero_info['unit'] == 13) { $name = U13; } else if($hero_info['unit'] == 15) { $name = U15; } else if($hero_info['unit'] == 16) { $name = U16; } else if($hero_info['unit'] == 21) { $name = U21; } else if($hero_info['unit'] == 22) { $name = U22; } else if($hero_info['unit'] == 24) { $name = U24; } else if($hero_info['unit'] == 25) { $name = U25; } else if($hero_info['unit'] == 26) { $name = U26; } if($hero_info['level'] <= 60){ $wood = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['wood']); $clay = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['clay']); $iron = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['iron']); $crop = (${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['crop']); $training_time = $generator->getTimeFormat(round((${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['time']) / SPEED * $artefact_bonus2 / $artefact_bonus)); $training_time2 = time() + round((${'h'.$hero_info['unit'].'_full'}[$hero_info['level']]['time']) / SPEED * $artefact_bonus2 / $artefact_bonus); }else{ $wood = (${'h'.$hero_info['unit'].'_full'}[60]['wood']); $clay = (${'h'.$hero_info['unit'].'_full'}[60]['clay']); $iron = (${'h'.$hero_info['unit'].'_full'}[60]['iron']); $crop = (${'h'.$hero_info['unit'].'_full'}[60]['crop']); $training_time = $generator->getTimeFormat(round((${'h'.$hero_info['unit'].'_full'}[60]['time']) / SPEED * $artefact_bonus2 / $artefact_bonus)); $training_time2 = time() + round((${'h'.$hero_info['unit'].'_full'}[60]['time']) / SPEED * $artefact_bonus2 / $artefact_bonus); } ?>
| ".HERO_READY." " . $timeleft . " |
|---|
$name ($name1)
|
|
|
|
|
6|
|
|
|
|
6|