Les humains et les covies n'ont pas besoin des mêmes recherches pour débloquer certains vasseaux

This commit is contained in:
Nigel Sheldon 2021-01-27 17:46:21 +01:00
parent bd5e4c75c1
commit 81cb1e9660

View File

@ -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]) { switch ($object[0]) {
case 0: case 0:
$tableau = array( $tableau = array(
@ -1488,6 +1491,7 @@ class dTechnologies implements Donnees
); );
break; break;
case 7: case 7:
if ($race == "humain") {
$tableau = array( $tableau = array(
array( array(
array('batiments', 6, 1) array('batiments', 6, 1)
@ -1546,6 +1550,66 @@ class dTechnologies implements Donnees
array("technologies", 7, 13) 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; break;
case 8: case 8:
$tableau = array( $tableau = array(