more updates

This commit is contained in:
unknown
2012-09-22 00:13:44 +03:00
parent 9b48213fdd
commit 2f510f3ec8
5 changed files with 23 additions and 7 deletions
+4
View File
@@ -78,8 +78,12 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
echo "<span class=\"none\">Upgrade Granary.</span>";
}
else if($bindicate == 7) {
if($village->allcrop > 0){
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
}else{
echo "<span class=\"none\">Your crop production is negative, you will never get the required resources.</span>";
}
if($session->goldclub == 1){
?> </br>
<?php
+4
View File
@@ -109,8 +109,12 @@ if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) {
echo "<span class=\"none\">Upgrade Granary.</span>";
}
else if($bindicate == 7) {
if($village->allcrop > 0){
$neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master);
echo "<span class=\"none\">Enough resources ".$neededtime[0]." at ".$neededtime[1]."</span>";
}else{
echo "<span class=\"none\">Your crop production is negative, you will never get the required resources.</span>";
}
if($session->goldclub == 1){
?> </br>
<?php