forked from halo-battle/game
Version 0.10a
This commit is contained in:
parent
b9c240c781
commit
e391f66774
201 changed files with 5182 additions and 8158 deletions
|
|
@ -37,14 +37,14 @@ function ressources($fer, $cristal, $ro, $need_fer, $need_cristal, $need_ro) {
|
|||
if ($need_cristal > 0) {
|
||||
if ($cristal <= $need_cristal) {
|
||||
$z=floor($cristal)-$need_cristal;
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[1].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[0].'">'.separerNombres($need_cristal).'</acronym></span> ';
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[1].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[1].'">'.separerNombres($need_cristal).'</acronym></span> ';
|
||||
}
|
||||
else $return .= $ressourc[1].' : <span class="rc">'.separerNombres($need_cristal).' </span>';
|
||||
}
|
||||
if ($need_ro > 0) {
|
||||
if ($ro <= $need_ro) {
|
||||
$z=floor($ro)-$need_ro;
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[2].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[0].'">'.separerNombres($need_ro).'</acronym></span>';
|
||||
$return .= '<span style="color: #FF0000;">'.$ressourc[2].' : <acronym title="Manque : '.separerNombres(abs($z)).' unités de '.$ressourc[2].'">'.separerNombres($need_ro).'</acronym></span>';
|
||||
}
|
||||
else $return .= $ressourc[2].' : <span class="rc">'.separerNombres($need_ro).'</span>';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue