forked from halo-battle/game
Affiche le nombre de case qu'a la planète + rend une ligne de la Class Planete plus lisible
This commit is contained in:
parent
aff1550919
commit
f69d4bf376
2 changed files with 23 additions and 3 deletions
|
|
@ -671,7 +671,27 @@ class Planete extends Surface
|
|||
$prod_hy -= $conso_h;
|
||||
|
||||
if ($retarray) {
|
||||
return array(array(ceil($this->coeff_bat[0]*100), ceil($this->coeff_bat[1]*100), ceil($this->coeff_bat[2]*100), ceil($this->coeff_bat[3]*100), ceil($this->coeff_bat[4]*100)), array($prod_met, $prod_cri, $prod_hy + $conso_h, $energie_s*$this->coeff_bat[3], $energie_f*$this->coeff_bat[4]), array($energie_m*$this->coeff_bat[0], $energie_c*$this->coeff_bat[1], $energie_h*$this->coeff_bat[2], $conso_h, ($energie_s*$this->coeff_bat[3] + $energie_f*$this->coeff_bat[4])-($energie_m*$this->coeff_bat[0] + $energie_c*$this->coeff_bat[1] + $energie_h*$this->coeff_bat[2])));
|
||||
return array(
|
||||
array(
|
||||
ceil($this->coeff_bat[0]*100),
|
||||
ceil($this->coeff_bat[1]*100),
|
||||
ceil($this->coeff_bat[2]*100),
|
||||
ceil($this->coeff_bat[3]*100),
|
||||
ceil($this->coeff_bat[4]*100)),
|
||||
array(
|
||||
$prod_met,
|
||||
$prod_cri,
|
||||
$prod_hy + $conso_h,
|
||||
$energie_s*$this->coeff_bat[3],
|
||||
$energie_f*$this->coeff_bat[4]),
|
||||
array(
|
||||
$energie_m*$this->coeff_bat[0],
|
||||
$energie_c*$this->coeff_bat[1],
|
||||
$energie_h*$this->coeff_bat[2],
|
||||
$conso_h,
|
||||
($energie_s*$this->coeff_bat[3] + $energie_f*$this->coeff_bat[4])-($energie_m*$this->coeff_bat[0] + $energie_c*$this->coeff_bat[1] + $energie_h*$this->coeff_bat[2])
|
||||
)
|
||||
);
|
||||
} else {
|
||||
return array($prod_met, $prod_cri, $prod_hy);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue