Fix bad cached numbers in technology unlocking
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
e441bfc57e
commit
1e8c022806
4 changed files with 32 additions and 32 deletions
|
|
@ -52,7 +52,7 @@ class dDonnees{
|
|||
return false;
|
||||
break;
|
||||
case 'technologies':
|
||||
if (((int)$planete->technologies[$need[1]]& $need[3]) != $need[3])
|
||||
if (((int)$planete->technologies[$need[1]]& dTechnologies::idToBit($need[2])) == 0)
|
||||
return false;
|
||||
break;
|
||||
case 'casernes':
|
||||
|
|
@ -100,7 +100,7 @@ class dDonnees{
|
|||
$return .= ucfirst($LANG[$race]["batiments"]["noms_sing"][$need[1]]).' < niveau '.($need[2]+1).' (batiment)<br />';
|
||||
break;
|
||||
case 'technologies':
|
||||
if (((int)$planete->technologies[$need[1]]& $need[3]) != $need[3])
|
||||
if (((int)$planete->technologies[$need[1]]& dTechnologies::idToBit($need[2])) == 0)
|
||||
$return .= '<span class="lack">'.$LANG[$race]["technologies"]["noms_sing"][$need[1]][$need[2]].' (technologie)</span><br />';
|
||||
else
|
||||
$return .= $LANG[$race]["technologies"]["noms_sing"][$need[1]][$need[2]].' (technologie)<br />';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue