mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-04 11:54:25 +00:00
update: now player without main building level 1 cannot build warehouse + edit general.tpl
This commit is contained in:
@@ -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 ) {
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user