forked from halo-battle/game
Version 0.10a
This commit is contained in:
parent
b9c240c781
commit
e391f66774
201 changed files with 5182 additions and 8158 deletions
|
|
@ -40,14 +40,14 @@ function ressources($fer, $cristal, $ro, $need_fer, $need_cristal, $need_ro) {
|
|||
if ($need_cristal > 0) {
|
||||
if ($cristal <= $need_cristal) {
|
||||
$z=floor($cristal)-$need_cristal;
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[1].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[0].'">'.separerNombres($need_cristal).'</acronym></span> ';
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[1].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[1].'">'.separerNombres($need_cristal).'</acronym></span> ';
|
||||
}
|
||||
else $return .= $ressourc[1].' : <span class="rc">'.$need_cristal.' </span>';
|
||||
}
|
||||
if ($need_ro > 0) {
|
||||
if ($ro <= $need_ro) {
|
||||
$z=floor($ro)-$need_ro;
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[2].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[0].'">'.separerNombres($need_ro).'</acronym></span>';
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[2].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[2].'">'.separerNombres($need_ro).'</acronym></span>';
|
||||
}
|
||||
else $return .= $ressourc[2].' : <span class="rc">'.separerNombres($need_ro).'</span>';
|
||||
}
|
||||
|
|
@ -104,7 +104,7 @@ $a=0; $b=0; $c=0;
|
|||
$i = 0;
|
||||
$nom_bdd = 'vaisseau_'.($i+1);
|
||||
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' vaisseau(x))'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=1000; $b=800;
|
||||
$n=(${$nom_bdd}-1); $a=1000; $b=800; $c=0;
|
||||
if($bat == 9) $action = 'Le chantier spatial est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (verification_des_ressvf($i+1, $metal, $cristal, $hydrogene, $a, $b, $c)) { $ACT = ''; $lien = 'chantier_spatial_validation.php?type='.($i+1); } else { $ACT = 'none'; $lien = ''; }
|
||||
|
|
@ -116,7 +116,7 @@ $a=0; $b=0; $c=0;
|
|||
$i = 1;
|
||||
$nom_bdd = 'vaisseau_'.($i+1);
|
||||
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' vaisseau(x))'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=4000; $b=3000;
|
||||
$n=(${$nom_bdd}-1); $a=4000; $b=3000; $c=0;
|
||||
if($bat == 9) $action = 'Le chantier spatial est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (verification_des_ressvf($i+1, $metal, $cristal, $hydrogene, $a, $b, $c)) { $ACT = ''; $lien = 'chantier_spatial_validation.php?type='.($i+1); } else { $ACT = 'none'; $lien = ''; }
|
||||
|
|
@ -164,7 +164,7 @@ $a=0; $b=0; $c=0;
|
|||
$i = 5;
|
||||
$nom_bdd = 'vaisseau_'.($i+1);
|
||||
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' vaisseau(x))'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=1700; $b=1220;
|
||||
$n=(${$nom_bdd}-1); $a=1700; $b=1220; $c=0;
|
||||
if($bat == 9) $action = 'Le chantier spatial est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (verification_des_ressvf($i+1, $metal, $cristal, $hydrogene, $a, $b, $c)) { $ACT = ''; $lien = 'chantier_spatial_validation.php?type='.($i+1); } else { $ACT = 'none'; $lien = ''; }
|
||||
|
|
@ -176,7 +176,7 @@ $a=0; $b=0; $c=0;
|
|||
$i = 6;
|
||||
$nom_bdd = 'vaisseau_'.($i+1);
|
||||
if (${$nom_bdd} > 0) $niveau = '('.${$nom_bdd}.' vaisseau(x))'; else $niveau = '';
|
||||
$n=(${$nom_bdd}-1); $a=5800; $b=1400;
|
||||
$n=(${$nom_bdd}-1); $a=5800; $b=1400; $c=0;
|
||||
if($bat == 9) $action = 'Le chantier spatial est en cours d\'évolution';
|
||||
else $action = verification_des_ress($i+1, $metal, $cristal, $hydrogene, $a, $b, $c);
|
||||
if (verification_des_ressvf($i+1, $metal, $cristal, $hydrogene, $a, $b, $c)) { $ACT = ''; $lien = 'chantier_spatial_validation.php?type='.($i+1); } else { $ACT = 'none'; $lien = ''; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue