mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-27 05:37:15 +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");
|
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");
|
include("avaliable/warehouse.tpl");
|
||||||
}
|
}
|
||||||
if($mainbuilding >= 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) {
|
if($mainbuilding >= 10 && $village->capital == 0 && $largeA['owner'] == $session->uid || $normalA['vref'] == $village->wid ) {
|
||||||
|
|||||||
@@ -68,10 +68,10 @@
|
|||||||
<td>Romans</td>
|
<td>Romans</td>
|
||||||
|
|
||||||
<td><?php
|
<td><?php
|
||||||
echo $tribes[0] - 2; ?></td>
|
echo $tribes[0]; ?></td>
|
||||||
|
|
||||||
<td><?php
|
<td><?php
|
||||||
$percents = 100 * (($tribes[0]-2) / $users);
|
$percents = 100 * (($tribes[0]) / $users);
|
||||||
echo $percents = intval($percents);
|
echo $percents = intval($percents);
|
||||||
echo "%"; ?></td>
|
echo "%"; ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|||||||
Reference in New Issue
Block a user