forked from halo-battle/game
Les humains et les covies n'ont pas besoin des mêmes recherches pour débloquer certains vasseaux
This commit is contained in:
parent
bd5e4c75c1
commit
81cb1e9660
@ -1046,8 +1046,11 @@ class dTechnologies implements Donnees
|
||||
}
|
||||
|
||||
|
||||
public static function needed($object, surface $planete, $print = false)
|
||||
public static function needed($object, surface $planete, $print = false, $race = null)
|
||||
{
|
||||
if ($race == null) {
|
||||
$race = $planete->race;
|
||||
}
|
||||
switch ($object[0]) {
|
||||
case 0:
|
||||
$tableau = array(
|
||||
@ -1488,6 +1491,7 @@ class dTechnologies implements Donnees
|
||||
);
|
||||
break;
|
||||
case 7:
|
||||
if ($race == "humain") {
|
||||
$tableau = array(
|
||||
array(
|
||||
array('batiments', 6, 1)
|
||||
@ -1546,6 +1550,66 @@ class dTechnologies implements Donnees
|
||||
array("technologies", 7, 13)
|
||||
),
|
||||
);
|
||||
} else {
|
||||
$tableau = array(
|
||||
array(
|
||||
array('batiments', 6, 1)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 0),
|
||||
array('batiments', 6, 2)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 1),
|
||||
array('batiments', 6, 3)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 2),
|
||||
array('batiments', 6, 5)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 1),
|
||||
array('batiments', 6, 3)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 3),
|
||||
array('batiments', 6, 8)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 5),
|
||||
array('batiments', 6, 10)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 6),
|
||||
array('batiments', 6, 15)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 7),
|
||||
array('batiments', 6, 20)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 8),
|
||||
array('batiments', 6, 30)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 5),
|
||||
array('batiments', 6, 10)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 5),
|
||||
array('batiments', 6, 10)
|
||||
),
|
||||
array(
|
||||
array('batiments', 6, 5)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 12)
|
||||
),
|
||||
array(
|
||||
array("technologies", 7, 13)
|
||||
),
|
||||
);
|
||||
}
|
||||
break;
|
||||
case 8:
|
||||
$tableau = array(
|
||||
|
Loading…
Reference in New Issue
Block a user