diff --git a/onyx2/include/game/laboratoire.php b/onyx2/include/game/laboratoire.php index 479cc03..f9598a9 100644 --- a/onyx2/include/game/laboratoire.php +++ b/onyx2/include/game/laboratoire.php @@ -81,14 +81,35 @@ function traiterBranche($onglet, $branche, $start = false) } } + //La technologie Expansion peut monter jusqu'au niveau 18 \o/ + if ($onglet == 8) { + $i = 1; + while ($i < 18) { + $b = $origin_b; + if ((dTechnologies::idToBit($b + ($i - 1)) & $planete->technologies[$onglet]) && + isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+$i]) && + $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == + $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+$i]) { + //La techno est déjà a ce niveau, on ne fait rien + } else { + $b += ($i - 1); + break; + } + $i++; + } + } + if ($key >= 1) { $return .= "
"; } + //La techno est au plus haut niveau if (dTechnologies::idToBit($b) & $planete->technologies[$onglet]) { $return .= '
'; + //La techno peut encore être augmentée } elseif (dTechnologies::idToBit($origin_b) & $planete->technologies[$onglet]) { $return .= '
'; + //La techno n'a pas encore été recherchée } else { $return .= '
'; }