Add a CSS class when the research is done, but not at the max level
This commit is contained in:
parent
a9e983cfaf
commit
bf335fb66e
@ -71,6 +71,7 @@ function traiterBranche($onglet, $branche, $start = false)
|
||||
$return .= traiterBranche($onglet, $b);
|
||||
$return .= "</dd>";
|
||||
} else {
|
||||
$origin_b = $b;
|
||||
//On recherche s'il s'agit d'une technologie à niveau multiple
|
||||
if ((dTechnologies::idToBit($b) & $planete->technologies[$onglet]) && isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+1]) && $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+1]) {
|
||||
if ((dTechnologies::idToBit($b+1) & $planete->technologies[$onglet]) && isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+2]) && $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+2]) {
|
||||
@ -86,6 +87,8 @@ function traiterBranche($onglet, $branche, $start = false)
|
||||
|
||||
if (dTechnologies::idToBit($b) & $planete->technologies[$onglet]) {
|
||||
$return .= '<dt><a href="#">';
|
||||
} elseif (dTechnologies::idToBit($origin_b) & $planete->technologies[$onglet]) {
|
||||
$return .= '<dt class="partial"><a href="?p=laboratoire&n='.$onglet.'&t='.$b.'">';
|
||||
} else {
|
||||
$return .= '<dt class="lack"><a href="?p=laboratoire&n='.$onglet.'&t='.$b.'">';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user