Affiche les techno dans l'arbre des technos (la disruption) #6

Merged
nemunaire merged 12 commits from show_tech_description into master 2020-11-22 17:01:17 +00:00
Showing only changes of commit 87b324cd5d - Show all commits

View File

@ -1469,7 +1469,7 @@ class dTechnologies implements Donnees
public static function niveau_max($branche, $id, surface $planete, $LANG) public static function niveau_max($branche, $id, surface $planete, $LANG)
{ {
$niveau_max = 1; $niveau_max = 1;
if ((self::idToBit($id) & $planete->technologies[$branche]) && isset($LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+1]) && $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id] == $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+1]) { if (isset($LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+1]) && $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id] == $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+1]) {
if (isset($LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+2]) && $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+1] == $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+2]) { if (isset($LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+2]) && $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+1] == $LANG[$planete->race]["technologies"]["noms_sing"][$branche][$id+2]) {
$niveau_max = 3; $niveau_max = 3;
} else { } else {