Update to version 8.3.5

Many Fixes
This commit is contained in:
Shadow
2022-02-18 13:56:17 +02:00
parent 2565d99549
commit 4c68d8dd39
62 changed files with 467 additions and 332 deletions
+4 -4
View File
@@ -1,10 +1,10 @@
<h2>Academy</h2>
<h2><?php echo ACADEMY ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In the academy new unit types can be researched. By increasing its level you can order the research of better units.</td>
<td class="desc"><?php echo ACADEMY_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(22,4);">
<img class="building g22" src="img/x.gif" alt="Academy" title="Academy" /></a>
<img class="building g22" src="img/x.gif" alt="<?php echo ACADEMY ?>" title="<?php echo ACADEMY ?>" /></a>
</td>
</tr>
<tr>
@@ -13,4 +13,4 @@
include("availupgrade.tpl");
?>
</tr></tbody>
</table>
</table>
+4 -4
View File
@@ -1,10 +1,10 @@
<h2>Armoury</h2>
<h2><?php echo ARMOURY ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In the armoury&#39;s melting furnaces your warriors&#39; armour is enhanced. By increasing its level you can order the fabrication of even better armour.</td>
<td class="desc"><?php echo ARMOURY_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(13,4);">
<img class="building g13" src="img/x.gif" alt="Armoury" title="Armoury" /></a>
<img class="building g13" src="img/x.gif" alt="<?php echo ARMOURY ?>" title="<?php echo ARMOURY ?>" /></a>
</td>
</tr>
<tr>
@@ -13,4 +13,4 @@
include("availupgrade.tpl");
?>
</tr></tbody>
</table>
</table>
+10 -10
View File
@@ -20,15 +20,15 @@ $uprequire = $building->resourceRequired($id, $bid);
<td class="link">
<?php
if($bindicator == 2) {
echo "<span class=\"none\">The workers are already at work.</span>";
echo "<span class=\"none\">" . WORKERS_ALREADY_WORK_WAITING . "</span>";
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1 && $village->master == 0){
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">Constructing with master builder </a>";
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">" . CONSTRUCTING_MASTER_BUILDER . "</a>";
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
}else{
echo "<span class=\"none\">Constructing with master builder</span>";
echo "<span class=\"none\">" . CONSTRUCTING_MASTER_BUILDER . "</span>";
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
}
}
@@ -39,10 +39,10 @@ $uprequire = $building->resourceRequired($id, $bid);
?> </br>
<?php
if($session->gold >= 1 && $village->master == 0){
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">Constructing with master builder </a>";
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">" . CONSTRUCTING_MASTER_BUILDER . "</a>";
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
}else{
echo "<span class=\"none\">Constructing with master builder</span>";
echo "<span class=\"none\">" . CONSTRUCTING_MASTER_BUILDER . "</span>";
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
}
}
@@ -58,24 +58,24 @@ $uprequire = $building->resourceRequired($id, $bid);
}
else if($bindicator == 7) {
$neededtime = $building->calculateAvaliable($id,$bid);
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
echo "<span class=\"none\">" .ENOUGH_RESOURCES . " " .$neededtime[0]." at ".$neededtime[1]."</span>";
if($session->goldclub == 1){
?> </br>
<?php
if($session->gold >= 1 && $village->master == 0){
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">Constructing with master builder </a>";
echo "<a class=\"build\" href=\"dorf2.php?master=$bid&id=$id&c=$session->checker\">" . CONSTRUCTING_MASTER_BUILDER . "</a>";
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
}else{
echo "<span class=\"none\">Constructing with master builder</span>";
echo "<span class=\"none\">" . CONSTRUCTING_MASTER_BUILDER . "</span>";
echo '<font color="#B3B3B3">(costs: <img src="'.GP_LOCATE.'img/a/gold_g.gif" alt="Gold" title="Gold"/>1)</font>';
}
}
}
else if($bindicator == 8) {
if($session->access!=BANNED){
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=".$session->checker."\">Construct building.</a>";
echo "<a class=\"build\" href=\"dorf2.php?a=$bid&id=$id&c=".$session->checker."\">". CONSTRUCT_BUILD."</a>";
}else{
echo "<a class=\"build\" href=\"banned.php\">Construct building.</a>";
echo "<a class=\"build\" href=\"banned.php\">". CONSTRUCT_BUILD."</a>";
}
}
else if($bindicator == 9) {
+4 -4
View File
@@ -1,11 +1,11 @@
<h2>Barracks</h2>
<h2><?php echo BARRACKS ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In the barracks infantry can be trained. The higher its level the faster the troops are trained.</td>
<td class="desc"><?php echo BARRACKS_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(19,4);">
<img class="building g19" src="img/x.gif" alt="Barracks" title="Barracks" /></a>
<img class="building g19" src="img/x.gif" alt="<?php echo BARRACKS ?>" title="<?php echo BARRACKS ?>" /></a>
</td>
</tr>
<tr>
@@ -14,4 +14,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -6
View File
@@ -1,12 +1,10 @@
<h2>Blacksmith</h2>
<h2><?php echo BLACKSMITH ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In the blacksmith&#39;s melting furnaces your warriors&#39; weapons are enhanced. By increasing its level you can order the fabrication of even better weapons.
</td>
<td class="desc"><?php echo BLACKSMITH_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(12,4);">
<img class="building g12" src="img/x.gif" alt="Blacksmith" title="Blacksmith" /></a>
<img class="building g12" src="img/x.gif" alt="<?php echo BLACKSMITH ?>" title="<?php echo BLACKSMITH ?>" /></a>
</td>
</tr>
<tr>
@@ -15,4 +13,4 @@
include("availupgrade.tpl");
?>
</tr></tbody>
</table>
</table>
+3 -3
View File
@@ -1,8 +1,8 @@
<h2>City Wall</h2>
<h2><?php echo CITYWALL ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">By building a City Wall you can protect your village against the barbarian hordes of your enemies. The higher the wall's level, the higher the bonus given to your forces' defence.</td>
<td class="desc"><?php echo CITYWALL_DESC ?></td>
<td rowspan="3" class="bimg">
</td>
</tr>
@@ -12,4 +12,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -4
View File
@@ -1,11 +1,11 @@
<h2>Cranny</h2>
<h2><?php echo CRANNY ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">The cranny is used to hide some of your resources when the village is attacked. These resources cannot be stolen.</td>
<td class="desc"><?php echo CRANNY_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(26,4);">
<img class="building g23" src="img/x.gif" alt="Cranny" title="Cranny" /></a>
<img class="building g23" src="img/x.gif" alt="<?php echo CRANNY ?>" title="<?php echo CRANNY ?>" /></a>
</td>
</tr>
<tr>
@@ -14,4 +14,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -4
View File
@@ -1,11 +1,11 @@
<h2>Embassy</h2>
<h2><?php echo EMBASSY ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">The embassy is a place for diplomats. The higher its level the more options the king gains.</td>
<td class="desc"><?php echo EMBASSY_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(18,4);">
<img class="building g18" src="img/x.gif" alt="Embassy" title="Embassy" /></a>
<img class="building g18" src="img/x.gif" alt="<?php echo EMBASSY ?>" title="<?php echo EMBASSY ?>" /></a>
</td>
</tr>
<tr>
@@ -14,4 +14,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -4
View File
@@ -1,12 +1,12 @@
<h2>Granary</h2>
<h2><?php echo GRANARY ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In the granary the crop produced in your farms is stored. By increasing its level you increase the granarys capacity.</td>
<td class="desc"><?php echo GRANARY_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(11,4);">
<img class="building g11" src="img/x.gif" alt="Granary" title="Granary" /></a>
<img class="building g11" src="img/x.gif" alt="<?php echo GRANARY ?>" title="<?php echo GRANARY ?>" /></a>
</td>
</tr>
<tr>
@@ -15,4 +15,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -4
View File
@@ -1,11 +1,11 @@
<h2>Hero's Mansion</h2>
<h2><?php echo HEROSMANSION ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In the Hero's Mansion you can train a hero and starting with building level 10 occupy oases in your surrounding area.</td>
<td class="desc"><?php echo HEROSMANSION_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(37,4);">
<img class="building g37" src="img/x.gif" alt="Hero's Mansion" title="Hero's Mansion" /></a>
<img class="building g37" src="img/x.gif" alt="<?php echo HEROSMANSION ?>" title="<?php echo HEROSMANSION ?>" /></a>
</td>
</tr>
<tr>
@@ -14,4 +14,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -4
View File
@@ -1,10 +1,10 @@
<h2>Marketplace</h2>
<h2><?php echo MARKETPLACE ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">At the marketplace you can trade resources with other players. The higher its level, the more resources can be transported at the same time.</td>
<td class="desc"><?php echo MARKETPLACE_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(17,4);">
<img class="building g17" src="img/x.gif" alt="Marketplace" title="Marketplace" /></a>
<img class="building g17" src="img/x.gif" alt="<?php echo MARKETPLACE ?>" title="<?php echo MARKETPLACE ?>" /></a>
</td>
</tr>
<tr>
@@ -13,4 +13,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+3 -3
View File
@@ -1,8 +1,8 @@
<h2>Palisade</h2>
<h2><?php echo PALISADE ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">By building a Palisade you can protect your village against the barbarian hordes of your enemies. A higher level Palisade will give your troops a higher defence bonus.</td>
<td class="desc"><?php echo PALISADE_DESC ?></td>
<td rowspan="3" class="bimg">
</td>
</tr>
@@ -12,4 +12,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -4
View File
@@ -1,11 +1,11 @@
<h2>Rally point</h2>
<h2><?php echo RALLYPOINT ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">Your village's troops meet here. From here you can send them out to conquer, raid or reinforce other villages.</td>
<td class="desc"><?php echo RALLYPOINT_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(16,4);">
<img class="g16" src="img/x.gif" alt="Rally point" title="Rally point" /></a>
<img class="g16" src="img/x.gif" alt="<?php echo RALLYPOINT ?>" title="<?php echo RALLYPOINT ?>" /></a>
</td>
</tr>
<tr>
@@ -14,4 +14,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>
+4 -4
View File
@@ -1,10 +1,10 @@
<h2>Residence</h2>
<h2><?php echo RESIDENCE ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">The residence is a small palace, where the king or queen lives when (s)he visits the village. The residence protects the village against enemies who want to conquer it.</td>
<td class="desc"><?php echo RESIDENCE_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(25,4);">
<img class="building g25" src="img/x.gif" alt="Residence" title="Residence" /></a>
<img class="building g25" src="img/x.gif" alt="<?php echo RESIDENCE ?>" title="<?php echo RESIDENCE ?>" /></a>
</td>
</tr>
<tr>
@@ -13,4 +13,4 @@
include("availupgrade.tpl");
?>
</tr></tbody>
</table>
</table>
+4 -4
View File
@@ -1,10 +1,10 @@
<h2>Stable</h2>
<h2><?php echo STABLE ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In the stable cavalry is trained. The higher its level the faster the troops are trained.</td>
<td class="desc"><?php echo STABLE_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(20,4);">
<img class="building g20" src="img/x.gif" alt="Stable" title="Stable" /></a>
<img class="building g20" src="img/x.gif" alt="<?php echo STABLE ?>" title="<?php echo STABLE ?>" /></a>
</td>
</tr>
<tr>
@@ -13,4 +13,4 @@
include("availupgrade.tpl");
?>
</tr></tbody>
</table>
</table>
+4 -4
View File
@@ -1,10 +1,10 @@
<h2>Trapper</h2>
<h2><?php echo TRAPPER ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">The Trapper protects your village with well hidden traps. Enemies can be imprisoned and won't be able to harm your village anymore. </td>
<td class="desc"><?php echo TRAPPER_DESC ?> </td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(36,4);">
<img class="building g36" src="img/x.gif" alt="Trapper" title="Trapper" /></a>
<img class="building g36" src="img/x.gif" alt="<?php echo TRAPPER ?>" title="<?php echo TRAPPER ?>" /></a>
</td>
</tr>
<tr>
@@ -13,4 +13,4 @@
include("availupgrade.tpl");
?>
</tr></tbody>
</table>
</table>
+4 -4
View File
@@ -1,11 +1,11 @@
<h2>Warehouse</h2>
<h2><?php echo WAREHOUSE ?></h2>
<table class="new_building" cellpadding="1" cellspacing="1">
<tbody><tr>
<td class="desc">In your warehouse the resources lumber, clay and iron are stored. By increasing its level you increase your warehouse's capacity.</td>
<td class="desc"><?php echo WAREHOUSE_DESC ?></td>
<td rowspan="3" class="bimg">
<a href="#" onClick="return Popup(10,4);">
<img class="building g10" src="img/x.gif" alt="Warehouse" title="Warehouse" /></a>
<img class="building g10" src="img/x.gif" alt="<?php echo WAREHOUSE ?>" title="<?php echo WAREHOUSE ?>" /></a>
</td>
</tr>
<tr>
@@ -14,4 +14,4 @@
include("availupgrade.tpl");
?>
</tr>
</table>
</table>