Fix sur le calcul du niveau qui ne fonctionnait pas pour un joueur n'ayant dev aucune techno
This commit is contained in:
parent
cbc12502f5
commit
1a3af2d38c
@ -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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user