resarray['f'.$id.'t']; $bindicate = $building->canBuild($id,$bid); if($bindicate == 1) { echo "

Building already at max level

"; } else if($bindicate == 10) { echo "

Building max level under construction

"; } else if($bindicate == 11) { echo "

Building presently being demolished

"; } else { $loopsame = ($building->isCurrent($id) || $building->isLoop($id))?1:0; $doublebuild = ($building->isCurrent($id) && $building->isLoop($id))?1:0; $master = count($database->getMasterJobsByField($village->wid,$id)); $uprequire = $building->resourceRequired($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master); $mastertime = $uprequire['time']; ?>

Costs for upgrading to level resarray['f'.$id]+1+$loopsame+$doublebuild+$master; ?>:
Lumber | Clay | Iron | Crop | Crop consumption | durationgetTimeFormat($uprequire['time']); if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1) { echo "|\"NPC"; } ?>
The workers are already at work."; if($session->goldclub == 1){ ?>
gold >= 1 && $village->master == 0){ echo "Constructing with master builder "; echo '(costs: Gold1)'; }else{ echo "Constructing with master builder"; echo '(costs: Gold1)'; } }else{ if($session->gold >= 1 && $village->master == 0){ echo "Constructing with master builder "; echo '(costs: Gold1)'; }else{ echo "Constructing with master builder"; echo '(costs: Gold1)'; } } } } else if($bindicate == 3) { echo "The workers are already at work. (waiting loop)"; if($session->goldclub == 1){ ?>
gold >= 1 && $village->master == 0){ echo "Constructing with master builder "; echo '(costs: Gold1)'; }else{ echo "Constructing with master builder"; echo '(costs: Gold1)'; } }else{ if($session->gold >= 1 && $village->master == 0){ echo "Constructing with master builder "; echo '(costs: Gold1)'; }else{ echo "Constructing with master builder"; echo '(costs: Gold1)'; } } } } else if($bindicate == 4) { echo "Not enough food. Expand cropland."; } else if($bindicate == 5) { echo "Upgrade Warehouse."; } else if($bindicate == 6) { echo "Upgrade Granary."; } else if($bindicate == 7) { if($village->allcrop - $village->pop - $automation->getUpkeep($village->unitall, 0) > 0){ $neededtime = $building->calculateAvaliable($id,$village->resarray['f'.$id.'t'],1+$loopsame+$doublebuild+$master); echo "Enough resources ".$neededtime[0]." at ".$neededtime[1].""; }else{ echo "Your crop production is negative, you will never get the required resources."; } if($session->goldclub == 1){ ?>
gold >= 1 && $village->master == 0){ echo "Constructing with master builder "; echo '(costs: Gold1)'; }else{ echo "Constructing with master builder"; echo '(costs: Gold1)'; } }else{ if($session->gold >= 1 && $village->master == 0){ echo "Constructing with master builder "; echo '(costs: Gold1)'; }else{ echo "Constructing with master builder"; echo '(costs: Gold1)'; } } } } else if($bindicate == 8) { if($session->access==BANNED){ echo "Upgrade to level "; } else if($id <= 18) { echo "checker\">Upgrade to level "; } else { echo "checker\">Upgrade to level "; } echo $village->resarray['f'.$id]+1; echo "."; } else if($bindicate == 9) { if($session->access==BANNED){ echo "Upgrade to level "; } else if($id <= 18) { echo "checker\">Upgrade to level "; } else { echo "checker\">Upgrade to level "; } echo $village->resarray['f'.$id]+($loopsame > 0 ? 2:1); echo ". (waiting loop) "; } } ?>