Corrige le calcul des niveaux déjà construit pour chaque recherche

This commit is contained in:
Nigel Sheldon 2020-11-30 09:03:40 +01:00
parent 7667cf3bae
commit 8bb4fdf398
1 changed files with 2 additions and 2 deletions

View File

@ -1624,8 +1624,8 @@ class dTechnologies implements Donnees
{
$niveau = 0;
// Si jamais cette techno a été recherchée au niveau 2 ou 3, aditionne les niveaux des trois technos
if (($niv = self::niveau($branche, $id)) > 0 && (self::idToBit($id) & $planete->technologies[$branche])) {
if ((self::idToBit($id+1) & $planete->technologies[$branche])) {
if (($niv = self::niveau($branche, $id)) > 0 && (self::idToBit($id+1) & $planete->technologies[$branche])) {
if ((self::idToBit($id+2) & $planete->technologies[$branche])) {
$niveau += $niv;
}
$niveau += $niv;