From 5334b1877db1b45027d3e046231decc69e634f9e Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sat, 16 Jan 2021 19:03:27 +0100 Subject: [PATCH 1/3] Les covies avaient besoin d'un techno qui n'existe pas pour construire le vaisseau de colonisation --- onyx2/include/Class/Donnees/spatial.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onyx2/include/Class/Donnees/spatial.php b/onyx2/include/Class/Donnees/spatial.php index 60c625e..214fff4 100644 --- a/onyx2/include/Class/Donnees/spatial.php +++ b/onyx2/include/Class/Donnees/spatial.php @@ -665,7 +665,7 @@ class dSpatial implements Donnees ), array( array('batiments', 8, 3), - array('technologies', 8, 1) + array('technologies', 8, 0) ), array( array('batiments', 8, 3), -- 2.45.2 From d72e495f59dd6452bc9c367cd5b1dfa14dae6c5e Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sat, 16 Jan 2021 19:03:55 +0100 Subject: [PATCH 2/3] =?UTF-8?q?Met=20les=20bonnes=20valeures=20sur=20la=20?= =?UTF-8?q?plan=C3=A8te=20lors=20de=20la=20colonisation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/include/Class/planete.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/onyx2/include/Class/planete.php b/onyx2/include/Class/planete.php index a65e153..d6d2e77 100644 --- a/onyx2/include/Class/planete.php +++ b/onyx2/include/Class/planete.php @@ -712,7 +712,10 @@ class Planete extends Surface $this->cristal = 700; $this->hydrogene = 0; - $this->modif = array("id_user", "nom_planete", "galaxie", "ss", "position", "image", "cases"); + // on met le moment où la planete a été crée, comme ça, à la première actualisation, on ne remplit pas les silos + $this->timestamp = time(); + + $this->modif = array("id_user", "nom_planete", "galaxie", "ss", "position", "image", "cases", "timestamp", "metal", "cristal", "hydrogene"); } /** -- 2.45.2 From 1072d78ae7bbc18ba4f7ba3cf8bb6d1e5daa4e85 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Sat, 16 Jan 2021 19:04:20 +0100 Subject: [PATCH 3/3] Permet l'envoi d'un rapport de colonisation (et tous les autres rapports aussi :p) --- onyx2/include/Class/rapport.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/onyx2/include/Class/rapport.php b/onyx2/include/Class/rapport.php index 58969a5..578081d 100644 --- a/onyx2/include/Class/rapport.php +++ b/onyx2/include/Class/rapport.php @@ -18,6 +18,8 @@ class Rapport public $rapportA = ""; public $rapportB = ""; + public $table = "mail"; + /** * Constructor * @access protected -- 2.45.2