Version 0.9b

This commit is contained in:
nemunaire 2007-11-21 12:00:00 +01:00
commit 73645ccc1f
25 changed files with 841 additions and 466 deletions

View file

@ -15,7 +15,7 @@ require('../template.php');
$template = new Template('../templates/'.$templates);
function verification_des_ress($numtec, $metal, $calcium, $nourriture, $ress_ness_metal, $ress_ness_calcium, $ress_ness_nourriture) {
if ($metal >= $ress_ness_metal && $calcium >= $ress_ness_calcium && $nourriture >= $ress_ness_nourriture) return '<form method="post" action="defense_validation.php"><input type="text" class="zone_texte" size="4" maxlength="4" name="sa" /><input type="hidden" name="type" value="'.$numtec.'" /><br /><input type="submit" value="Envoyer" class="bouton"></form>';
if ($metal >= $ress_ness_metal && $calcium >= $ress_ness_calcium && $nourriture >= $ress_ness_nourriture) return '<form method="post" action="defense_validation.php"><input type="text" class="zone_texte" size="4" maxlength="4" name="sa" /><input type="hidden" name="type" value="'.$numtec.'" /><br /><input type="submit" value="Envoyer" class="bouton" /></form>';
else return '<font color="red">Vous n\'avez pas suffisament de ressources</font>';
}
@ -117,7 +117,7 @@ $a=0; $b=0; $c=0;
// Défense n°1 : Shade/Tour à plasma/Mitrailleuse automatique M247 GP ; planete.def_1
if ($chantier_spatial >= 1) {
$i = 8;
$nom_bdd = 'def'.($i-7);
$nom_bdd = 'def_'.($i-7);
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' construit)'; else $niveau = '';
$n=(${$nom_bdd}-1); $a=500; $b=200;
if($bat == 8) $action = 'Le chantier terrestre est en cours d\'évolution';
@ -128,7 +128,7 @@ $a=0; $b=0; $c=0;
// Défense n°2 : Strong shade/Tour Ion/DCA légère ; planete.def_2
if ($chantier_terrestre >= 3 && $energie_t >=2) {
$i = 9;
$nom_bdd = 'def'.($i-7);
$nom_bdd = 'def_'.($i-7);
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' construit)'; else $niveau = '';
$n=(${$nom_bdd}-1); $a=4000; $b=2000;
if($bat == 8) $action = 'Le chantier terrestre est en cours d\'évolution';
@ -139,7 +139,7 @@ $a=0; $b=0; $c=0;
// Défense n°3 : Tourelle à barreau de combustible/Canon Orbital/DCA lourde ; planete.def_3
if ($chantier_terrestre >= 4 && $armement >= 3 && $energie_t >= 3) {
$i = 10;
$nom_bdd = 'def'.($i-7);
$nom_bdd = 'def_'.($i-7);
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' construit)'; else $niveau = '';
$n=(${$nom_bdd}-1); $a=4500; $b=800; $c=600;
if($bat == 8) $action = 'Le chantier terrestre est en cours d\'évolution';
@ -150,7 +150,7 @@ $a=0; $b=0; $c=0;
// Défense n°4 : Canon à plasma/Drone/Canon Gauss ; planete.def_4
if ($chantier_terrestre >= 4 && $armement >= 1) {
$i = 11;
$nom_bdd = 'def'.($i-7);
$nom_bdd = 'def_'.($i-7);
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' construit)'; else $niveau = '';
$n=(${$nom_bdd}-1); $a=12000; $b=10000; $c=1000;
if($bat == 8) $action = 'Le chantier terrestre est en cours d\'évolution';
@ -161,7 +161,7 @@ $a=0; $b=0; $c=0;
// Défense n°5 : Lanceur de torpilles plasma/Station de defense/Lanceur de missiles ; planete.def_5
if ($chantier_terrestre >= 4 && $armement >= 1) {
$i = 12;
$nom_bdd = 'def'.($i-7);
$nom_bdd = 'def_'.($i-7);
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' construit)'; else $niveau = '';
$n=(${$nom_bdd}-1); $a=15000; $b=9500; $c=1500;
if($bat == 8) $action = 'Le chantier terrestre est en cours d\'évolution';