From 984c35ee6487b3cc9a64ecc6889a5f48a03950b1 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sun, 18 Apr 2021 18:23:16 +0200 Subject: [PATCH 1/6] La page rapport d'erreur ne redirige plus sur un NDD qui n'existe plus --- onyx2/config/root.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onyx2/config/root.xml b/onyx2/config/root.xml index 8b3583e..2eaf7be 100644 --- a/onyx2/config/root.xml +++ b/onyx2/config/root.xml @@ -81,7 +81,7 @@ ?p=classement ?p=chat http://www.halo-battle.fr/forum/ - http://issues.halo-battle.s-fr.com/ + # ?p=faq ?p=deconnexion ?p=pilori @@ -159,4 +159,4 @@ - \ No newline at end of file + From aad1364170bf95504efbd469e7b1177618940369 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sun, 18 Apr 2021 19:58:21 +0200 Subject: [PATCH 2/6] =?UTF-8?q?Ajoute=20une=20entr=C3=A9e=20dans=20le=20me?= =?UTF-8?q?nu=20pour=20aller=20directement=20=C3=A0=20la=20techno=20expans?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/tpl/game/menu_joueurs.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onyx2/tpl/game/menu_joueurs.tpl b/onyx2/tpl/game/menu_joueurs.tpl index 578040d..a7e0d8f 100644 --- a/onyx2/tpl/game/menu_joueurs.tpl +++ b/onyx2/tpl/game/menu_joueurs.tpl @@ -27,6 +27,7 @@
  • Armement
  • Défenses
  • Projets expérimentaux
  • +
  • Expansion
  • {/if}
  • @@ -67,4 +68,4 @@
  • Rapports de bug
  • F.A.Q.
  • Déconnexion
  • - \ No newline at end of file + From 241d24ef01d2095ad313998ccd0217481874da81 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sun, 18 Apr 2021 19:59:03 +0200 Subject: [PATCH 3/6] =?UTF-8?q?La=20techno=20expansion=20peut=20monter=20j?= =?UTF-8?q?usqu'au=20niveau=2018,=20il=20faut=20donc=20la=20calculer=20?= =?UTF-8?q?=C3=A0=20part,=20sinon=20on=20ne=20peux=20pas=20passer=20au=20d?= =?UTF-8?q?essus=20du=20niveau=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/include/game/laboratoire.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/onyx2/include/game/laboratoire.php b/onyx2/include/game/laboratoire.php index 479cc03..f9598a9 100644 --- a/onyx2/include/game/laboratoire.php +++ b/onyx2/include/game/laboratoire.php @@ -81,14 +81,35 @@ function traiterBranche($onglet, $branche, $start = false) } } + //La technologie Expansion peut monter jusqu'au niveau 18 \o/ + if ($onglet == 8) { + $i = 1; + while ($i < 18) { + $b = $origin_b; + if ((dTechnologies::idToBit($b + ($i - 1)) & $planete->technologies[$onglet]) && + isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+$i]) && + $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == + $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+$i]) { + //La techno est déjà a ce niveau, on ne fait rien + } else { + $b += ($i - 1); + break; + } + $i++; + } + } + if ($key >= 1) { $return .= "
    "; } + //La techno est au plus haut niveau if (dTechnologies::idToBit($b) & $planete->technologies[$onglet]) { $return .= '
    '; + //La techno peut encore être augmentée } elseif (dTechnologies::idToBit($origin_b) & $planete->technologies[$onglet]) { $return .= '
    '; + //La techno n'a pas encore été recherchée } else { $return .= '
    '; } From 4d61e170219f9898ce35166b7e01b5f741c4958e Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sun, 18 Apr 2021 19:58:21 +0200 Subject: [PATCH 4/6] =?UTF-8?q?Ajoute=20une=20entr=C3=A9e=20dans=20le=20me?= =?UTF-8?q?nu=20pour=20aller=20directement=20=C3=A0=20la=20techno=20expans?= =?UTF-8?q?ion?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/tpl/game/menu_joueurs.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/onyx2/tpl/game/menu_joueurs.tpl b/onyx2/tpl/game/menu_joueurs.tpl index 578040d..a7e0d8f 100644 --- a/onyx2/tpl/game/menu_joueurs.tpl +++ b/onyx2/tpl/game/menu_joueurs.tpl @@ -27,6 +27,7 @@
  • Armement
  • Défenses
  • Projets expérimentaux
  • +
  • Expansion
  • {/if}
  • @@ -67,4 +68,4 @@
  • Rapports de bug
  • F.A.Q.
  • Déconnexion
  • - \ No newline at end of file + From 9805b58f2bc3e92e2770fc3d1d5e566c36c6ffae Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sun, 18 Apr 2021 19:59:03 +0200 Subject: [PATCH 5/6] =?UTF-8?q?La=20techno=20expansion=20peut=20monter=20j?= =?UTF-8?q?usqu'au=20niveau=2018,=20il=20faut=20donc=20la=20calculer=20?= =?UTF-8?q?=C3=A0=20part,=20sinon=20on=20ne=20peux=20pas=20passer=20au=20d?= =?UTF-8?q?essus=20du=20niveau=203?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/include/game/laboratoire.php | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/onyx2/include/game/laboratoire.php b/onyx2/include/game/laboratoire.php index 479cc03..f9598a9 100644 --- a/onyx2/include/game/laboratoire.php +++ b/onyx2/include/game/laboratoire.php @@ -81,14 +81,35 @@ function traiterBranche($onglet, $branche, $start = false) } } + //La technologie Expansion peut monter jusqu'au niveau 18 \o/ + if ($onglet == 8) { + $i = 1; + while ($i < 18) { + $b = $origin_b; + if ((dTechnologies::idToBit($b + ($i - 1)) & $planete->technologies[$onglet]) && + isset($LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+$i]) && + $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b] == + $LANG[$planete->race]["technologies"]["noms_sing"][$onglet][$b+$i]) { + //La techno est déjà a ce niveau, on ne fait rien + } else { + $b += ($i - 1); + break; + } + $i++; + } + } + if ($key >= 1) { $return .= "
    "; } + //La techno est au plus haut niveau if (dTechnologies::idToBit($b) & $planete->technologies[$onglet]) { $return .= '
    '; + //La techno peut encore être augmentée } elseif (dTechnologies::idToBit($origin_b) & $planete->technologies[$onglet]) { $return .= '
    '; + //La techno n'a pas encore été recherchée } else { $return .= '
    '; } From 85d59f7a651e3331b33260486e079b514d726307 Mon Sep 17 00:00:00 2001 From: Pierre-Olivier Mercier Date: Sat, 19 Jun 2021 01:20:48 +0200 Subject: [PATCH 6/6] CI: add cron for docker-manifest actions --- .drone.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.drone.yml b/.drone.yml index af479b3..b05c253 100644 --- a/.drone.yml +++ b/.drone.yml @@ -64,6 +64,7 @@ steps: trigger: event: + - cron - push - tag