update: now player without main building level 1 cannot build warehouse + edit general.tpl

This commit is contained in:
unknown
2012-04-06 18:12:07 +03:00
parent 0e4460be28
commit 634c3406fb
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ if($wall == 0) {
include("avaliable/citywall.tpl");
}
}
if(($warehouse == 0 || $warehouse == 20) && $id != 39 && $id != 40) {
if(($warehouse == 0 || $warehouse == 20) && $mainbuilding >= 1 && $id != 39 && $id != 40) {
include("avaliable/warehouse.tpl");
}
if($mainbuilding >= 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) {
+2 -2
View File
@@ -68,10 +68,10 @@
<td>Romans</td>
<td><?php
echo $tribes[0] - 2; ?></td>
echo $tribes[0]; ?></td>
<td><?php
$percents = 100 * (($tribes[0]-2) / $users);
$percents = 100 * (($tribes[0]) / $users);
echo $percents = intval($percents);
echo "%"; ?></td>
</tr>