mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-13 16:16:07 +00:00
update medals.php, almost all training files and hero_full.php(not 100% but i will do it soon)
This commit is contained in:
@@ -45,7 +45,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
}
|
||||
echo "</div>
|
||||
</td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"4\"></td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"10\"></td>
|
||||
<td class=\"max\"><a href=\"#\" onClick=\"document.snd.t".$i.".value=".$technology->maxUnit($i,false)."; return false;\">(".$technology->maxUnit($i,false).")</a></td></tr></tbody>";
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
}
|
||||
echo "</div>
|
||||
</td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"4\"></td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"10\"></td>
|
||||
<td class=\"max\"><a href=\"#\" onClick=\"document.snd.t".$i.".value=".$technology->maxUnit($i,false)."; return false;\">(".$technology->maxUnit($i,false).")</a></td></tr></tbody>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -46,7 +46,7 @@ for($i=4;$i<=6;$i++) {
|
||||
}
|
||||
echo "</div></td>
|
||||
<td class=\"val\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"$i\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"10\">
|
||||
</td>
|
||||
|
||||
<td class=\"max\">
|
||||
|
||||
@@ -41,7 +41,7 @@ for($i=15;$i<=16;$i++) {
|
||||
}
|
||||
echo "</div></td>
|
||||
<td class=\"val\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"$i\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"10\">
|
||||
</td>
|
||||
|
||||
<td class=\"max\">
|
||||
|
||||
@@ -41,7 +41,7 @@ for($i=23;$i<=26;$i++) {
|
||||
}
|
||||
echo "</div></td>
|
||||
<td class=\"val\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"$i\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"10\">
|
||||
</td>
|
||||
|
||||
<td class=\"max\">
|
||||
|
||||
@@ -41,7 +41,7 @@ for($i=35;$i<=36;$i++) {
|
||||
}
|
||||
echo "</div></td>
|
||||
<td class=\"val\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"$i\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"10\">
|
||||
</td>
|
||||
|
||||
<td class=\"max\">
|
||||
|
||||
@@ -38,7 +38,7 @@ for($i=45;$i<=46;$i++) {
|
||||
echo ($dur=="0:00:00")? "0:00:01":$dur;
|
||||
echo "</div></td>
|
||||
<td class=\"val\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"$i\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"10\">
|
||||
</td>
|
||||
|
||||
<td class=\"max\">
|
||||
|
||||
@@ -71,7 +71,7 @@
|
||||
}
|
||||
echo "</div></td>
|
||||
<td class=\"val\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"$i\">
|
||||
<input type=\"text\" class=\"text\" name=\"t$i\" value=\"0\" maxlength=\"10\">
|
||||
</td>
|
||||
|
||||
<td class=\"max\">
|
||||
|
||||
@@ -44,7 +44,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
}
|
||||
echo "</div>
|
||||
</td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"4\"></td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"10\"></td>
|
||||
<td class=\"max\"><a href=\"#\" onClick=\"document.snd.t".$i.".value=".$technology->maxUnit($i,true)."; return false;\">(".$technology->maxUnit($i,true).")</a></td></tr></tbody>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -44,7 +44,7 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
|
||||
}
|
||||
echo "</div>
|
||||
</td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"4\"></td>
|
||||
<td class=\"val\"><input type=\"text\" class=\"text\" name=\"t".$i."\" value=\"0\" maxlength=\"10\"></td>
|
||||
<td class=\"max\"><a href=\"#\" onClick=\"document.snd.t".$i.".value=".$technology->maxUnit($i,true)."; return false;\">(".$technology->maxUnit($i,true).")</a></td></tr></tbody>";
|
||||
}
|
||||
}
|
||||
|
||||
@@ -54,13 +54,21 @@
|
||||
} else if($hero_info['unit'] == 26) {
|
||||
$name = "Haeduan";
|
||||
}
|
||||
|
||||
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);
|
||||
}
|
||||
?>
|
||||
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
|
||||
Reference in New Issue
Block a user