mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-31 23:57:13 +00:00
update
This commit is contained in:
+43
-43
@@ -1,7 +1,7 @@
|
||||
<table cellpadding="1" cellspacing="1" class="build_details">
|
||||
<thead><tr>
|
||||
<td>Academy</td>
|
||||
<td>Action</td>
|
||||
<td><?php echo ACADEMY; ?></td>
|
||||
<td><?php echo ACTION; ?></td>
|
||||
|
||||
</tr></thead>
|
||||
<tbody><tr>
|
||||
@@ -15,45 +15,45 @@ for($i=22;$i<=29;$i++) {
|
||||
<img class=\"unit u".$i."\" src=\"img/x.gif\" alt=\"".$technology->getUnitName($i)."\" title=\"".$technology->getUnitName($i)."\" />
|
||||
<a href=\"#\" onClick=\"return Popup(".$i.",1);\">".$technology->getUnitName($i)."</a>
|
||||
</div>
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"Lumber\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"Clay\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"Iron\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"Crop\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"duration\" />";
|
||||
<div class=\"details\"><img class=\"r1\" src=\"img/x.gif\" alt=\"Lumber\" title=\"".LUMBER."\" />".${'r'.$i}['wood']."|<img class=\"r2\" src=\"img/x.gif\" alt=\"Clay\" title=\"".CLAY."\" />".${'r'.$i}['clay']."|<img class=\"r3\" src=\"img/x.gif\" alt=\"Iron\" title=\"".IRON."\" />".${'r'.$i}['iron']."|<img class=\"r4\" src=\"img/x.gif\" alt=\"Crop\" title=\"".CROP."\" />".${'r'.$i}['crop']."|<img class=\"clock\" src=\"img/x.gif\" alt=\"duration\" title=\"".DURATION."\" />";
|
||||
echo $generator->getTimeFormat(round(${'r'.$i}['time'] * ($bid22[$village->resarray['f'.$id]]['attri'] / 100)/SPEED));
|
||||
if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) > 1) {
|
||||
echo "|<a href=\"build.php?gid=17&t=3&r1=".${'r'.$i}['wood']."&r2=".${'r'.$i}['clay']."&r3=".${'r'.$i}['iron']."&r4=".${'r'.$i}['crop']."\" title=\"NPC trade\"><img class=\"npc\" src=\"img/x.gif\" alt=\"NPC trade\" title=\"NPC trade\" /></a>";
|
||||
}
|
||||
if(${'r'.$i}['wood'] > $village->maxstore || ${'r'.$i}['clay'] > $village->maxstore || ${'r'.$i}['iron'] > $village->maxstore) {
|
||||
echo "<br><span class=\"none\">Expand warehouse</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_WAREHOUSE1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>warehouse</div>
|
||||
<div class=\"none\">".EXPAND_WAREHOUSE."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['crop'] > $village->maxcrop) {
|
||||
echo "<br><span class=\"none\">Expand granary</span></div></td>";
|
||||
echo "<br><span class=\"none\">".EXPAND_GRANARY1."</span></div></td>";
|
||||
echo "<td class=\"none\">
|
||||
<div class=\"none\">Expand<br>granary</div>
|
||||
<div class=\"none\">".EXPAND_GRANARY."</div>
|
||||
</td></tr>";
|
||||
}
|
||||
else if(${'r'.$i}['wood'] > $village->awood || ${'r'.$i}['clay'] > $village->aclay || ${'r'.$i}['iron'] > $village->airon || ${'r'.$i}['crop'] > $village->acrop) {
|
||||
if($village->getProd("crop")>0){
|
||||
$time = $technology->calculateAvaliable(22,${'r'.$i});
|
||||
echo "<br><span class=\"none\">Enough resources ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
echo "<br><span class=\"none\">".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1]."</span></div></td>";
|
||||
} else {
|
||||
echo "<br><span class=\"none\">Crop production is negative so you will never reach the required resources</span></div></td>";
|
||||
echo "<br><span class=\"none\">".CROP_NEGATIVE."</span></div></td>";
|
||||
}
|
||||
echo "<td class=\"act\"><div class=\"none\">Too few<br>resources</div></td></tr>";
|
||||
echo "<td class=\"act\"><div class=\"none\">".TOO_FEW_RESOURCES."</div></td></tr>";
|
||||
}
|
||||
else if ( count($acares) > 0 ) {
|
||||
echo "</td>";
|
||||
echo "<td class=\"none\">
|
||||
Research in progress</td></tr>";
|
||||
".RESEARCH_IN_PROGRESS."</td></tr>";
|
||||
}
|
||||
else if($session->access != BANNED){
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"build.php?id=$id&a=$i&c=".$session->mchecker."\">".RESEARCH."</a></td></tr>";
|
||||
}else{
|
||||
echo "</td>";
|
||||
echo "<td class=\"act\">
|
||||
<a class=\"research\" href=\"banned.php\">Research</a></td></tr>";
|
||||
<a class=\"research\" href=\"banned.php\">".RESEARCH."</a></td></tr>";
|
||||
}
|
||||
$success +=1;
|
||||
}
|
||||
@@ -62,59 +62,59 @@ for($i=22;$i<=29;$i++) {
|
||||
}
|
||||
}
|
||||
if($success == 0) {
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no researches avaliable</div></td>";
|
||||
echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">".RESEARCH_AVAILABLE."</div></td>";
|
||||
}
|
||||
?>
|
||||
</tbody></table>
|
||||
<?php if($fail > 0) {
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">show more</a></p>
|
||||
echo "<p class=\"switch\"><a id=\"researchFutureLink\" href=\"#\" onclick=\"return $('researchFuture').toggle();\">".SHOW_MORE."</a></p>
|
||||
<table id=\"researchFuture\" class=\"build_details hide\" cellspacing=\"1\" cellpadding=\"1\">
|
||||
<thead><tr><td colspan=\"2\">Prerequisites</td></tr><tbody>";
|
||||
<thead><tr><td colspan=\"2\">".PREREQUISITES."</td></tr><tbody>";
|
||||
if(!$technology->meetRRequirement(22) && !$technology->getTech(22)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u22\" title=\"Swordsman\" alt=\"Swordsman\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(22, 1);\" href=\"#\">Swordsman</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+2\"> Level 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">Blacksmith </a><span title=\"+1\"> Level 1</span></td></tr>";
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u22\" title=\"".U22."\" alt=\"Swordsman\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(22, 1);\" href=\"#\">Swordsman</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 3</span><br /><a href=\"#\" onclick=\"return Popup(12, 4);\">".BLACKSMITH." </a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(23) && !$technology->getTech(23)) {
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u23\" title=\"Pathfinder\" alt=\"Pathfinder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(23, 1);\" href=\"#\">Pathfinder</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable </a><span title=\"+1\"> Level 1</span> </td></tr>";
|
||||
echo"<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u23\" title=\"".U23."\" alt=\"Pathfinder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(23, 1);\" href=\"#\">Pathfinder</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE." </a><span title=\"+1\"> ".LEVEL." 1</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(24) && !$technology->getTech(24)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u24\" title=\"Theutates Thunder\" alt=\"Theutates Thunder\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u24\" title=\"".U24."\" alt=\"Theutates Thunder\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(24, 1);\" href=\"#\">Theutates Thunder</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable</a>
|
||||
<span title=\"+3\"> Level 3</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a>
|
||||
<span title=\"+3\"> ".LEVEL." 3</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(25) && !$technology->getTech(25)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u25\" title=\"Druidrider\" alt=\"Druidrider\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u25\" title=\"".U25."\" alt=\"Druidrider\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(25, 1);\" href=\"#\">Druidrider</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+2\"> Level 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">Stable</a>
|
||||
<span title=\"+5\"> Level 5</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+2\"> ".LEVEL." 5</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">".STABLE."</a>
|
||||
<span title=\"+5\"> ".LEVEL." 5</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(26) && !$technology->getTech(26)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u26\" title=\"Haeduan\" alt=\"Haeduan\" src=\"img/x.gif\"/>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u26\" title=\"".U26."\" alt=\"Haeduan\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(26, 1);\" href=\"#\">Haeduan</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+12\"> Level 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
Stable</a><span title=\"+10\"> Level 10</span> </td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span><br /><a href=\"#\" onclick=\"return Popup(20, 4);\">
|
||||
".STABLE."</a><span title=\"+10\"> ".LEVEL." 10</span> </td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(27) && !$technology->getTech(27)) {
|
||||
echo "
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u27\" title=\"Ram\" alt=\"Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(27, 1);\" href=\"#\">Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a>
|
||||
<span title=\"+7\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a><span title=\"+1\"> Level 1</span></td></tr>";
|
||||
<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u27\" title=\"".U27."\" alt=\"Ram\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(27, 1);\" href=\"#\">Ram</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a>
|
||||
<span title=\"+7\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a><span title=\"+1\"> ".LEVEL." 1</span></td></tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(28) && !$technology->getTech(28)) {
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u28\" title=\"Trebuchet\" alt=\"Trebuchet\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(28, 1);\" href=\"#\">Trebuchet</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">Workshop</a>
|
||||
<span title=\"+10\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">Academy</a><span title=\"+12\"> Level 15</span> </td>
|
||||
echo "<tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u28\" title=\"".U28."\" alt=\"Trebuchet\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(28, 1);\" href=\"#\">Trebuchet</a></div></td><td class=\"cond\"><a href=\"#\" onclick=\"return Popup(21, 4);\">".WORKSHOP."</a>
|
||||
<span title=\"+10\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">".ACADEMY."</a><span title=\"+12\"> ".LEVEL." 15</span> </td>
|
||||
</tr>";
|
||||
}
|
||||
if(!$technology->meetRRequirement(29) && !$technology->getTech(29)) {
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u29\" title=\"Chieftain\" alt=\"Chieftain\" src=\"img/x.gif\"/>
|
||||
echo " <tr><td class=\"desc\"><div class=\"tit\"><img class=\"unit u29\" title=\"".U29."\" alt=\"Chieftain\" src=\"img/x.gif\"/>
|
||||
<a onclick=\"return Popup(29, 1);\" href=\"#\">Chieftain</a></div></td><td class=\"cond\">
|
||||
<a href=\"#\" onclick=\"return Popup(14, 4);\">Rally Point</a><span title=\"+9\"> Level 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
Academy</a><span title=\"+17\"> Level 20</span></td></tr>";
|
||||
<a href=\"#\" onclick=\"return Popup(14, 4);\">".RALLYPOINT."</a><span title=\"+9\"> ".LEVEL." 10</span><br /><a href=\"#\" onclick=\"return Popup(22, 4);\">
|
||||
".ACADEMY."</a><span title=\"+17\"> ".LEVEL." 20</span></td></tr>";
|
||||
}
|
||||
echo " <script type=\"text/javascript\">
|
||||
//<![CDATA[
|
||||
@@ -124,8 +124,8 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
|
||||
$(\"researchFutureLink\").set(\"text\",
|
||||
this.hasClass(\"hide\")
|
||||
? \"show more\"
|
||||
: \"hide more\"
|
||||
? \"".SHOW_MORE."\"
|
||||
: \"".HIDE_MORE."\"
|
||||
);
|
||||
|
||||
return false;
|
||||
@@ -136,7 +136,7 @@ echo "<td colspan=\"2\"><div class=\"none\" align=\"center\">There are no resear
|
||||
}
|
||||
$acares = $technology->grabAcademyRes();
|
||||
if(count($acares) > 0) {
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>Researching</td><td>Duration</td><td>Complete</td></tr>
|
||||
echo "<table cellpadding=\"1\" cellspacing=\"1\" class=\"under_progress\"><thead><tr><td>".RESEARCHING."</td><td>".DURATION."</td><td>".COMPLETE."</td></tr>
|
||||
</thead><tbody>";
|
||||
$timer = 1;
|
||||
foreach($acares as $aca) {
|
||||
|
||||
Reference in New Issue
Block a user