Insertion des valeurs de l'abre des tech V2 dans les vaisseaux covies

This commit is contained in:
Nigel Sheldon 2020-11-26 15:41:18 +01:00
parent afbffec33d
commit f160876ccc

View File

@ -57,6 +57,54 @@ class dSpatial implements Donnees
case 0: case 0:
$metal = 1000; $metal = 1000;
break; break;
case 1:
$metal = 3000;
break;
case 2:
$metal = 9000;
break;
case 3:
$metal = 600;
break;
case 4:
$metal = 500;
break;
case 5:
$metal = 500;
break;
case 6:
$metal = 1500;
break;
case 7:
$metal = 3000;
break;
case 8:
$metal = 3000;
break;
case 9:
$metal = 7000;
break;
case 10:
$metal = 14000;
break;
case 11:
$metal = 15000;
break;
case 12:
$metal = 25000;
break;
case 13:
$metal = 18000;
break;
case 14:
$metal = 18000;
break;
case 15:
$metal = 17500;
break;
case 16:
$metal = 150000;
break;
default: default:
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR); trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
} }
@ -122,7 +170,55 @@ class dSpatial implements Donnees
} else { } else {
switch ($id) { switch ($id) {
case 0: case 0:
$cristal = 1000; $cristal = 800;
break;
case 1:
$cristal = 3600;
break;
case 2:
$cristal = 8000;
break;
case 3:
$cristal = 800;
break;
case 4:
$cristal = 400;
break;
case 5:
$cristal = 600;
break;
case 6:
$cristal = 1800;
break;
case 7:
$cristal = 3000;
break;
case 8:
$cristal = 6000;
break;
case 9:
$cristal = 9200;
break;
case 10:
$cristal = 16000;
break;
case 11:
$cristal = 18000;
break;
case 12:
$cristal = 30000;
break;
case 13:
$cristal = 20800;
break;
case 14:
$cristal = 19400;
break;
case 16:
$cristal = 23000;
break;
case 16:
$cristal = 100000;
break; break;
default: default:
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR); trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
@ -189,7 +285,55 @@ class dSpatial implements Donnees
} else { } else {
switch ($id) { switch ($id) {
case 0: case 0:
$hydrogene = 1000; $hydrogene = 180;
break;
case 1:
$hydrogene = 660;
break;
case 2:
$hydrogene = 1600;
break;
case 3:
$hydrogene = 140;
break;
case 4:
$hydrogene = 90;
break;
case 5:
$hydrogene = 110;
break;
case 6:
$hydrogene = 330;
break;
case 7:
$hydrogene = 600;
break;
case 8:
$hydrogene = 900;
break;
case 9:
$hydrogene = 1620;
break;
case 10:
$hydrogene = 3000;
break;
case 11:
$hydrogene = 3300;
break;
case 12:
$hydrogene = 5500;
break;
case 13:
$hydrogene = 3880;
break;
case 14:
$hydrogene = 3740;
break;
case 16:
$hydrogene = 4050;
break;
case 16:
$hydrogene = 25000;
break; break;
default: default:
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR); trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
@ -275,9 +419,73 @@ class dSpatial implements Donnees
} else { } else {
switch ($id) { switch ($id) {
case 0: case 0:
$temps = 1000; $temps = 733;
$moins = 1; $moins = 1;
break; break;
case 1:
$temps = 2800;
$moins = 5;
break;
case 2:
$temps = 6667;
$moins = 5;
break;
case 3:
$temps = 600;
$moins = 5;
break;
case 4:
$temps = 367;
$moins = 5;
break;
case 5:
$temps = 467;
$moins = 3;
break;
case 6:
$temps = 1400;
$moins = 5;
break;
case 7:
$temps = 2500;
$moins = 1;
break;
case 8:
$temps = 4000;
$moins = 3;
break;
case 9:
$temps = 10000;
$moins = 6;
break;
case 10:
$temps = 19000;
$moins = 6;
break;
case 11:
$temps = 21000;
$moins = 8;
break;
case 12:
$temps = 46667;
$moins = 12;
break;
case 13:
$temps = 32800;
$moins = 12;
break;
case 14:
$temps = 31400;
$moins = 14;
break;
case 15:
$temps = 34667;
$moins = 16;
break;
case 16:
$temps = 200000;
$moins = 20;
break;
default: default:
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR); trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
} }
@ -446,7 +654,71 @@ class dSpatial implements Donnees
array( array(
array( array(
array('batiments', 8, 1), array('batiments', 8, 1),
array('technologies', 0,3) array('technologies', 0, 3)
),
array(
array('batiments', 8, 4),
array('technologies', 0, 3)
),
array(
array('batiments', 8, 3),
array('technologies', 8, 1)
),
array(
array('batiments', 8, 3),
array('technologies', 7, 4)
),
array(
array('batiments', 8, 1),
array('technologies', 7, 1)
),
array(
array('batiments', 8, 1),
array('technologies', 7, 2)
),
array(
array('batiments', 8, 2),
array('technologies', 7, 3)
),
array(
array('batiments', 8, 3),
array('technologies', 7, 4)
),
array(
array('batiments', 8, 4),
array('technologies', 7, 5)
),
array(
array('batiments', 8, 5),
array('technologies', 7, 6)
),
array(
array('batiments', 8, 5),
array('technologies', 7, 7)
),
array(
array('batiments', 8, 6),
array('technologies', 7, 8)
),
array(
array('batiments', 8, 8),
array('technologies', 7, 9)
),
array(
array('batiments', 8, 7),
array('technologies', 7, 10)
),
array(
array('batiments', 8, 7),
array('technologies', 7, 11)
),
array(
array('batiments', 8, 8),
array('technologies', 7, 12)
),
array(
array('batiments', 8, 9),
array('technologies', 7, 13)
) )
); );
} }
@ -575,7 +847,55 @@ class dSpatial implements Donnees
} else { } else {
switch ($id) { switch ($id) {
case 0: case 0:
$vitesse = 1000; $vitesse = 9;
break;
case 1:
$vitesse = 6;
break;
case 2:
$vitesse = 4;
break;
case 3:
$vitesse = 6;
break;
case 4:
$vitesse = 11;
break;
case 5:
$vitesse = 10;
break;
case 6:
$vitesse = 10.5;
break;
case 7:
$vitesse = 7;
break;
case 8:
$vitesse = 6.2;
break;
case 9:
$vitesse = 5.2;
break;
case 10:
$vitesse = 4.2;
break;
case 11:
$vitesse = 3.7;
break;
case 12:
$vitesse = 2.5;
break;
case 13:
$vitesse = 3.6;
break;
case 14:
$vitesse = 3;
break;
case 15:
$vitesse = 2;
break;
case 16:
$vitesse = 0.8;
break; break;
default: default:
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR); trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
@ -638,7 +958,55 @@ class dSpatial implements Donnees
} else { } else {
switch ($id) { switch ($id) {
case 0: case 0:
$vitesse = 1000; $vitesse = 9;
break;
case 1:
$vitesse = 8;
break;
case 2:
$vitesse = 6;
break;
case 3:
$vitesse = 7;
break;
case 4:
$vitesse = 10;
break;
case 5:
$vitesse = 9;
break;
case 6:
$vitesse = 9;
break;
case 7:
$vitesse = 8;
break;
case 8:
$vitesse = 8.2;
break;
case 9:
$vitesse = 8.2;
break;
case 10:
$vitesse = 5.2;
break;
case 11:
$vitesse = 5.6;
break;
case 12:
$vitesse = 4.3;
break;
case 13:
$vitesse = 5.5;
break;
case 14:
$vitesse = 4.6;
break;
case 15:
$vitesse = 4;
break;
case 16:
$vitesse = 2;
break; break;
default: default:
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR); trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);
@ -701,7 +1069,55 @@ class dSpatial implements Donnees
} else { } else {
switch ($id) { switch ($id) {
case 0: case 0:
$vitesse = 1000; $vitesse = 8;
break;
case 1:
$vitesse = 10;
break;
case 2:
$vitesse = 5;
break;
case 3:
$vitesse = 7;
break;
case 4:
$vitesse = 0.1;
break;
case 5:
$vitesse = 0.1;
break;
case 6:
$vitesse = 0.09;
break;
case 7:
$vitesse = 10;
break;
case 8:
$vitesse = 9.5;
break;
case 9:
$vitesse = 9.5;
break;
case 10:
$vitesse = 9;
break;
case 11:
$vitesse = 8;
break;
case 12:
$vitesse = 8.5;
break;
case 13:
$vitesse = 8;
break;
case 14:
$vitesse = 8;
break;
case 15:
$vitesse = 7;
break;
case 16:
$vitesse = 7;
break; break;
default: default:
trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR); trigger_error("Vaisseau ".$id." introuvable dans les données", E_USER_ERROR);