forked from halo-battle/game
Gestion de l'affichage des veaisseaux maintenant qu'ils sont désiquilibrés
This commit is contained in:
parent
f160876ccc
commit
81bf20f3b8
4 changed files with 23 additions and 11 deletions
|
|
@ -89,24 +89,30 @@ foreach ($planete->casernes as $id => $unite) {
|
|||
$template->assign('caserne', $TEMP_liste);
|
||||
|
||||
$TEMP_liste = array();
|
||||
foreach ($planete->terrestres as $id => $unite) {
|
||||
$id = 1;
|
||||
$max_unite = count($LANG[$race]["terrestre"]["noms_sing"]);
|
||||
while ($id <= $max_unite) {
|
||||
if (!empty($LANG[$race]["terrestre"]["noms_sing"][$id])) {
|
||||
$TEMP_liste[$id] = array(
|
||||
'niveau' => $unite,
|
||||
'etat' => dTerrestre::needed($id, $planete, true)
|
||||
'niveau' => $planete->terrestres[$id],
|
||||
'etat' => dTerrestre::needed($id, $planete, true, $race)
|
||||
);
|
||||
}
|
||||
$id++;
|
||||
}
|
||||
$template->assign('unites', $TEMP_liste);
|
||||
|
||||
$TEMP_liste = array();
|
||||
foreach ($planete->vaisseaux as $id => $unite) {
|
||||
$id = 1;
|
||||
$max_unite = count($LANG[$race]["vaisseaux"]["noms_sing"]);
|
||||
while ($id <= $max_unite) {
|
||||
if (!empty($LANG[$race]["vaisseaux"]["noms_sing"][$id])) {
|
||||
$TEMP_liste[$id] = array(
|
||||
'niveau' => $unite,
|
||||
'etat' => dSpatial::needed($id, $planete, true)
|
||||
'niveau' => $planete->vaisseaux[$id],
|
||||
'etat' => dSpatial::needed($id, $planete, true, $race)
|
||||
);
|
||||
}
|
||||
$id++;
|
||||
}
|
||||
$template->assign('vaisseaux', $TEMP_liste);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue