From 93dd3e187accc2ab1766256ce39d08bd23cf9081 Mon Sep 17 00:00:00 2001 From: Nigel Sheldon Date: Wed, 17 Feb 2021 17:17:09 +0100 Subject: [PATCH] =?UTF-8?q?Prend=20une=20image=20au=20hasard=20dans=20les?= =?UTF-8?q?=20150=20qui=20existent=20lors=20de=20la=20g=C3=A9n=C3=A9ration?= =?UTF-8?q?=20de=20la=20plan=C3=A8te?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- onyx2/include/Class/planete.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/onyx2/include/Class/planete.php b/onyx2/include/Class/planete.php index 83775a0..23263a4 100644 --- a/onyx2/include/Class/planete.php +++ b/onyx2/include/Class/planete.php @@ -684,21 +684,17 @@ class Planete extends Surface $this->id_user = $id_user; //Génération du nombre de case et de l'image en fonction de la position dans le système + $this->image = mt_rand(1, 150); if ($mere) { $this->cases = 225; - $this->image = mt_rand(1, 19); } elseif ($this->position > $VAR['nb_planete']*0.75) { $this->cases = mt_rand(200, 255); - $this->image = mt_rand(1, 19); } elseif ($this->position > $VAR['nb_planete']/2) { $this->cases = mt_rand(250, 300); - $this->image = mt_rand(1, 19); } elseif ($this->position > $VAR['nb_planete']/4) { $this->cases = mt_rand(175, 260); - $this->image = mt_rand(1, 19); } else { $this->cases = mt_rand(150, 220); - $this->image = mt_rand(1, 19); } //Définition des principaux paramètres de la planète