resarray['f'.$id]; $inuse = $database->getVillageField($village->wid, 'celebration'); $time = Time(); $i = 1; echo ""; } else if($cel[$i]['wood'] > $village->awood || $cel[$i]['clay'] > $village->aclay || $cel[$i]['iron'] > $village->airon || $cel[$i]['crop'] > $village->acrop) { if($village->getProd("crop")>0){ $time = $technology->calculateAvaliable(24,$cel[$i]); echo "
".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1].""; } else { echo "
".CROP_NEGATIVE.""; } echo ""; } else { echo ""; echo ""; } if($level >= 10){ $level = $village->resarray['f'.$id]; echo ""; } else if(29700 > $village->awood || 33250 > $village->aclay || 32000 > $village->airon || 6700 > $village->acrop) { if($village->getProd("crop")>0){ $time = $technology->calculateAvaliable(24,$cel[2]); echo "
".ENOUGH_RESOURCES." ".$time[0]." at ".$time[1].""; } else { echo "
".CROP_NEGATIVE.""; } echo ""; } else { echo ""; echo ""; } } ?>
".$cel[$i]['name']." (".$cel[$i]['attri']." ".CULTURE_POINTS.")
\"Lumber\"".$cel[$i]['wood']."|\"Clay\"".$cel[$i]['clay']."|\"Iron\"".$cel[$i]['iron']."|\"Crop\"".$cel[$i]['crop']."|\"duration\""; echo $generator->getTimeFormat(round($cel[$i]['time'] * ($bid24[$building->getTypeLevel(24)]['attri'] / 100)/SPEED)); //-- If available resources combined are not enough, remove NPC button $total_required = (int)($cel[$i]['wood'] + $cel[$i]['clay'] + $cel[$i]['iron'] + $cel[$i]['crop']); if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1 && $village->atotal >= $total_required) { echo "|\"NPC"; } if($inuse > $time){ echo "
".CELEBRATIONS_IN_PROGRESS."
".TOO_FEW_RESOURCES."
"; echo "".HOLD."
".GREAT_CELEBRATIONS." (2000 ".CULTURE_POINTS.")
\"Lumber\"29700|\"Clay\"33250|\"Iron\"32000|\"Crop\"6700|\"duration\""; echo $generator->getTimeFormat(round($gc[$level]/SPEED)); //-- If available resources combined are not enough, remove NPC button $total_required = (int)(29700 + 33250 + 32000 + 6700); if($session->userinfo['gold'] >= 3 && $building->getTypeLevel(17) >= 1 && $village->atotal >= $total_required) { echo "|\"NPC"; } if($inuse > $time){ echo "
".CELEBRATIONS_IN_PROGRESS."
".TOO_FEW_RESOURCES."
".HOLD."