foreach ($tech as $i => $n) { //Defensa if ($i > 400 && $i <= 599) { if (!is_tech_available($userrow, $planetrow, $i)) { echo "</tr>\n"; } else { //Funciona ^_^ echo "<tr><td class=l><a href=infos?gid={$i}><img border='0' src=\"" . $dpath . "gebaeude/{$i}.gif\" align='top' width='120' height='120'></a></td>"; //obtenemos la cantidad de unidades que hay en el planeta $building_level = $planetrow[$resource[$i]]; //Muestra la cantidad de unidades que se encuentran en el planeta //die($userrow[$resource[$i]]); $nivel = $building_level == 0 ? "" : "(Nivel {$building_level})"; //Descripcion echo "<td class=l><a href=infos?gid={$i}>{$n}</a><br>{$pricelist[$i][description]}<br>\n\t\t"; $is_buyeable = echo_price($userrow, $planetrow, $i, false); /* Calculo del tiempo de produccion [(Cris+Met)/2500]*[1/(Nivel f.robots+1)]* 0,5^NivelFabrica Nanos. */ $time = get_building_time($userrow, $planetrow, $i); //metodo temporal para mostrar el formato tiempo... echo_building_time($time); echo "<td class=k>"; //Muestra la opcion a elegir para construir o ampliar un edificio if ($is_buyeable) { $tabindex++; echo "<input type=text name=fmenge[{$i}] alt='{$tech[$i]}' size=6 maxlength=6 value=0 tabindex={$tabindex}>"; } } }
$nivel = $building_level == 0 ? "" : " (Nivel {$building_level})"; //Descripcion echo "<td class=l><a href=infos.php?gid={$i}>{$n}</a>{$nivel}<br>"; echo "{$lang['res']['descriptions'][$i]}<br>\n\t\t"; /* Formula sencilla para mostrar los costos de construccion. Mina de Metal: 60*1,5^(nivel-1) Metal y 15*1,5^(nivel-1) Cristal Mina de Cristal: 48*1,6^(nivel-1) Metal y 24*1,6^(nivel-1) Cristal Sintetizador de Deuterio: 225*1,5^(nivel-1) Metal y 75*1,5^(Nivel-1) Cristal Planta energ僘 Solar: 75*1,5^(nivel-1) Metal y 30*1,5^(Nivel-1) cristal Planta Fusion: 900*1,8^(nivel-1) Metal y 360*1,8^(Nivel-1) cristal y 180*1,8^(Nivel-1) Deuterio tecnolog僘 Gravit: *3 por Nivel. Todas las dem疽 investigaciones y edificios *2^Nivel */ $is_buyeable = @echo_price($userrow, $planetrow, $i); /* Calculo del tiempo de produccion [(Cris+Met)/2500]*[1/(Nivel f.robots+1)]* 0,5^NivelFabrica Nanos. */ //$time = ((($cost_crystal )+($cost_metal)) / 2500) * (1 / ($planetrow[$resource['14']] + 1)) * pow(0.5,$planetrow[$resource['15']]); //metodo temporal para mostrar el formato tiempo... //$time = ($time *60*60); $time = get_building_time($userrow, $planetrow, $i); echo building_time($time); echo_rest_price($userrow, $planetrow, $i); echo "<td class=k>"; /*if( if($planetrow["b_building_id"] == 31 && $game_config['allow_invetigate_while_lab_is_update']!=1) { $buildinglist = '<br><br><font color="#ff0000">'.$lang['cant_invetigate_while_lab_is_update'].'</font><br><br>';