"; include 'bdd.php'; function techno($nom, $niveau, $niveau_ress) { if ($niveau < $niveau_ress) { echo "".$nom." ".$niveau_ress.""; } else { echo "".$nom." ".$niveau_ress.""; } } echo"
Metal


description.
Besoin de :
Bâtiments : "; @techno("Chantier spatial", $chantier_spatial, 1); echo "
Technologie : "; @techno("Propultion conventionelle", $propu, 3); echo"

"; $a=$mine_m+5; $c=$mine_m-2; if ($c < 0 ) { $c = 0; $a = 7; } echo '
'; for ($c;$c<$a;$c++) { $b=ceil((($c*40+(exp($c*0.33)*10)))); $h=ceil((($c*40+(exp($c*0.33)*10)))) - ceil(((($c-1)*40+(exp(($c-1)*0.33)*10)))); $p=ceil((exp($c*0.28)*10)); $g=ceil((exp($c*0.28)*10)) - ceil((exp(($c-1)*0.28)*10)); echo ''; } echo"
NiveauProduction par heureConsommation énergie
'.$c.''.$b.' (+ '.$h.')'.$p.' (+ '.$g.')
"; echo"
"; ?>