Ajout d'une étape de linting dans DroneCi (#3)
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
Corrige un doublons laissé par le rebase semi-manuel Ajout d'une étape de linting dans DroneCi Fix linting Co-authored-by: Nigel Sheldon <nigelsheldon@live.fr> Reviewed-on: https://gitea.nemunai.re/halo-battle/game/pulls/3
This commit is contained in:
parent
5b17a7dbd7
commit
dd61d3b66b
263 changed files with 45327 additions and 42695 deletions
|
|
@ -4,7 +4,7 @@ define("INDEX", 1); //Définition de la constante anti-hacking
|
|||
$chrono_start = microtime();
|
||||
//Inclusion de l'API Onyx
|
||||
$onyx = @file_get_contents('./.onyx') or die("Configuration introuvable.");
|
||||
define("_FCORE",str_replace('/onyx2/load.php', '/onyx/', trim($onyx)));
|
||||
define("_FCORE", str_replace('/onyx2/load.php', '/onyx/', trim($onyx)));
|
||||
require_once(_FCORE."common.php");
|
||||
$race = 'humain';
|
||||
require_once(_FCORE."../game/noms.php");
|
||||
|
|
@ -12,30 +12,24 @@ require_once(_FCORE."../game/vars.php");
|
|||
|
||||
$tree = array();
|
||||
|
||||
foreach($technologiesCALC as $keyB => $branche)
|
||||
{
|
||||
print "<h3><ins>Branche :</ins> ".$technologiesVAR[$keyB]."</h3>";
|
||||
foreach($branche as $keyT => $tech)
|
||||
{
|
||||
print $tech[0].' : '.$technolo[$keyB][$keyT]."<br />";
|
||||
if ($tech[1] > 0)
|
||||
{
|
||||
print '<em><ins>Requiert :</ins>';
|
||||
foreach($branche as $keyR => $req)
|
||||
{
|
||||
if ($req[0]&$tech[1])
|
||||
print ' '.$technolo[$keyB][$keyR].',';
|
||||
}
|
||||
print '</em><br />';
|
||||
}
|
||||
else
|
||||
{
|
||||
print '<em>Ne requiert aucune technologie</em><br />';
|
||||
$tree[] = array($tech);
|
||||
}
|
||||
print "<br />";
|
||||
}
|
||||
}
|
||||
foreach ($technologiesCALC as $keyB => $branche) {
|
||||
print "<h3><ins>Branche :</ins> ".$technologiesVAR[$keyB]."</h3>";
|
||||
foreach ($branche as $keyT => $tech) {
|
||||
print $tech[0].' : '.$technolo[$keyB][$keyT]."<br />";
|
||||
if ($tech[1] > 0) {
|
||||
print '<em><ins>Requiert :</ins>';
|
||||
foreach ($branche as $keyR => $req) {
|
||||
if ($req[0]&$tech[1]) {
|
||||
print ' '.$technolo[$keyB][$keyR].',';
|
||||
}
|
||||
}
|
||||
print '</em><br />';
|
||||
} else {
|
||||
print '<em>Ne requiert aucune technologie</em><br />';
|
||||
$tree[] = array($tech);
|
||||
}
|
||||
print "<br />";
|
||||
}
|
||||
}
|
||||
|
||||
echo("\n<!--Page générée en : ".round((array_sum(explode(' ', microtime()))) - (array_sum(explode(' ', $chrono_start))), 4)." secondes.-->");
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue