'86400', 'heure' => '3600', 'minute' => '60', 'seconde' => '1'); foreach ($tab as $key => $value) { $compteur = 0; while ($time > ($value-1)) { $time = $time - $value; $compteur++; } if ($compteur != 0) { $output .= $compteur.' '.$key; if ($compteur > 1) $output .= 's'; if ($value != 1) $output .= ' '; } } echo $output; } $f = ceil((480 - (0.1*$chantier_terrestre*480))); $g = ceil((1560 - (0.1*$chantier_terrestre*1560))); $h = ceil((1800 - (0.1*$chantier_terrestre*1800))); $i = ceil((6720 - (0.1*$chantier_terrestre*6720))); $j = ceil((12960 - (0.1*$chantier_terrestre*12960))); if ($temps_terrestre>0) { switch ($unit_t) { case 1: $unit= "banshees"; break; case 2: $unit= "spirits"; break; case 3: $unit= "phantom"; break; case 4: $unit= "boarding craft"; break; case 5: $unit= "ghosts"; break; case 6: $unit= "shadow"; break; case 7: $unit= "spectres"; break; case 8: $unit= "appartitions"; break; case 9: $unit= "shade"; break; case 10: $unit= "strong shade"; break; case 11: $unit= "tourelles à barreau de combustible"; break; case 12: $unit= "tourelles à plasma"; break; case 13: $unit= "lanceurs de Torpilles plasma"; break; }} ?> 0) { if ($temps_terrestre >0) { echo "
Construction terminé dans : "; $tr=$temps_terrestre-time(); echo '
'; echo ''; echo "
Construction de : ".$cons_terrestre." ".$unit."
";} else {} echo""; if ($chantier_terrestre >= 1) { echo ""; } else {} if ($chantier_terrestre >= 3 && $energie_t >=2) { echo ""; } else {} if ($chantier_terrestre >= 4 && $armement >= 1) { echo ""; } else {} if ($chantier_terrestre >= 6 && $armement >=3 && $enerigie_t >= 4) { echo ""; } else {} if ($chantier_terrestre >= 8 && $armement >=5 && $informatique >= 3) { echo ""; } else {} } else { ?>
lmagesDescriptionNombre
Shade ( ".$def_1." unités )
Métal : 500
Cristal : 200
Temps : "; sec($f); echo"
"; if ( $bat == 8 ) { echo "Chantier terrestre en construction"; } else { if ($temps_terrestre < time() ) { echo "
"; } else { if ($unit_t<9 && $unit_t>0) {echo "Construction en cours dans le chantier terrestre";} } } echo "
Strong shade ( ".$def_2." unités )
Métal : 4000
Cristal : 2000
Temps : "; sec($g); echo"
"; if ( $bat == 8 ) { echo "Chantier terrestre en construction"; } else { if ($temps_terrestre < time() ) { echo "
"; } else { if ($unit_t<9 && $unit_t>0) {echo "Construction en cours dans le chantier terrestre";} } } echo "
Tourelle à barreau de combustible ( ".$def_3." unités )
Métal : 4500
Cristal : 800
Hydrogène : 600
Temps : "; sec($h); echo"
"; if ( $bat == 8 ) { echo "Chantier terrestre en construction"; } else { if ($temps_terrestre < time() ) { echo "
"; } else { if ($unit_t<9 && $unit_t>0) {echo "Construction en cours dans le chantier terrestre";} } } echo "
Tourelle à plasma ( ".$def_4." unités )
Métal : 12000
Cristal : 10000
Hydrogène : 1000
Temps : "; sec($i); echo"
"; if ( $bat == 8 ) { echo "Chantier terrestre en construction"; } else { if ($temps_terrestre < time() ) { echo "
"; } else { if ($unit_t<9 && $unit_t>0) {echo "Construction en cours dans le chantier terrestre";} } } echo "
Lanceur de Torpilles plasma ( ".$def_5." unités )
Métal : 15000
Cristal : 9500
Hydrogène : 1500
Temps : "; sec($j); echo"
"; if ( $bat == 8 ) { echo "Chantier terrestre en construction"; } else { if ($temps_terrestre < time() ) { echo "
"; } else { if ($unit_t<9 && $unit_t>0) {echo "Construction en cours dans le chantier terrestre";} } } echo "
Vous devez d'abord construire un chantier spatial !
"; } echo ""; ?>