Application de l'arbre V2 sur les vaisseaux humains

This commit is contained in:
Nigel Sheldon 2020-11-26 16:18:29 +01:00
parent 81bf20f3b8
commit af1eb71738

View File

@ -14,40 +14,40 @@ class dSpatial implements Donnees
$metal = 4000; $metal = 4000;
break; break;
case 2: case 2:
$metal = 4000; $metal = 8000;
break; break;
case 3: case 3:
$metal = 9000; $metal = 3000;
break; break;
case 4: case 4:
$metal = 9000; $metal = 1500;
break; break;
case 5: case 5:
$metal = 1000; $metal = 500;
break; break;
case 6: case 6:
$metal = 15000; $metal = 2000;
break; break;
case 7: case 7:
$metal = 1800; $metal = 3500;
break; break;
case 8: case 8:
$metal = 2550; $metal = 6000;
break; break;
case 9: case 9:
$metal = 12950; $metal = 10000;
break; break;
case 10: case 10:
$metal = 26000; $metal = 18000;
break; break;
case 11: case 11:
$metal = 60000; $metal = 20000;
break; break;
case 12: case 12:
$metal = 500000; $metal = 20500;
break; break;
case 13: case 13:
$metal = 500000; $metal = 23500;
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);
@ -126,43 +126,43 @@ class dSpatial implements Donnees
$cristal = 800; $cristal = 800;
break; break;
case 1: case 1:
$cristal = 3000; $cristal = 2500;
break; break;
case 2: case 2:
$cristal = 3000; $cristal = 8000;
break; break;
case 3: case 3:
$cristal = 9000; $cristal = 3000;
break; break;
case 4: case 4:
$cristal = 9000; $cristal = 3000;
break; break;
case 5: case 5:
$cristal = 1200; $cristal = 400;
break; break;
case 6: case 6:
$cristal = 9000; $cristal = 1450;
break; break;
case 7: case 7:
$cristal = 1000; $cristal = 2000;
break; break;
case 8: case 8:
$cristal = 1350; $cristal = 3600;
break; break;
case 9: case 9:
$cristal = 16400; $cristal = 7000;
break; break;
case 10: case 10:
$cristal = 6900; $cristal = 12000;
break; break;
case 11: case 11:
$cristal = 40000; $cristal = 13500;
break; break;
case 12: case 12:
$cristal = 400000; $cristal = 17200;
break; break;
case 13: case 13:
$cristal = 400000; $cristal = 17900;
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);
@ -238,46 +238,46 @@ class dSpatial implements Donnees
if ($planete->race == "humain") { if ($planete->race == "humain") {
switch ($id) { switch ($id) {
case 0: case 0:
$hydrogene = 0; $hydrogene = 180;
break; break;
case 1: case 1:
$hydrogene = 0; $hydrogene = 650;
break; break;
case 2: case 2:
$hydrogene = 0;
break;
case 3:
$hydrogene = 1000;
break;
case 4:
$hydrogene = 1000;
break;
case 5:
$hydrogene = 100;
break;
case 6:
$hydrogene = 1000;
break;
case 7:
$hydrogene = 0;
break;
case 8:
$hydrogene = 65;
break;
case 9:
$hydrogene = 100;
break;
case 10:
$hydrogene = 1600; $hydrogene = 1600;
break; break;
case 11: case 3:
$hydrogene = 600;
break;
case 4:
$hydrogene = 450;
break;
case 5:
$hydrogene = 90;
break;
case 6:
$hydrogene = 350;
break;
case 7:
$hydrogene = 550;
break;
case 8:
$hydrogene = 960;
break;
case 9:
$hydrogene = 1700;
break;
case 10:
$hydrogene = 3000; $hydrogene = 3000;
break; break;
case 11:
$hydrogene = 3350;
break;
case 12: case 12:
$hydrogene = 250000; $hydrogene = 3770;
break; break;
case 13: case 13:
$hydrogene = 250000; $hydrogene = 4340;
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);
@ -358,59 +358,59 @@ class dSpatial implements Donnees
if ($planete->race == "humain") { if ($planete->race == "humain") {
switch ($id) { switch ($id) {
case 0: case 0:
$temps = 1080; $temps = 733;
$moins = 1; $moins = 1;
break; break;
case 1: case 1:
$temps = 6300; $temps = 2583;
$moins = 5; $moins = 5;
break; break;
case 2: case 2:
$temps = 6300; $temps = 6667;
$moins = 5; $moins = 5;
break; break;
case 3: case 3:
$temps = 8280; $temps = 2500;
$moins = 5; $moins = 5;
break; break;
case 4: case 4:
$temps = 8280; $temps = 2000;
$moins = 5; $moins = 5;
break; break;
case 5: case 5:
$temps = 1440; $temps = 367;
$moins = 3; $moins = 3;
break; break;
case 6: case 6:
$temps = 7380; $temps = 1392;
$moins = 5; $moins = 5;
break; break;
case 7: case 7:
$temps = 1200; $temps = 2167;
$moins = 1; $moins = 1;
break; break;
case 8: case 8:
$temps = 4680; $temps = 3800;
$moins = 3; $moins = 3;
break; break;
case 9: case 9:
$temps = 16800; $temps = 10250;
$moins = 6; $moins = 6;
break; break;
case 10: case 10:
$temps = 16800; $temps = 18000;
$moins = 6; $moins = 6;
break; break;
case 11: case 11:
$temps = 32400; $temps = 22125;
$moins = 8; $moins = 8;
break; break;
case 12: case 12:
$temps = 117000; $temps = 30867;
$moins = 12; $moins = 12;
break; break;
case 13: case 13:
$temps = 117000; $temps = 34900;
$moins = 12; $moins = 12;
break; break;
default: default:
@ -742,43 +742,43 @@ class dSpatial implements Donnees
$vitesse = 10000; $vitesse = 10000;
break; break;
case 1: case 1:
$vitesse = 50000; $vitesse = 52000;
break; break;
case 2: case 2:
$vitesse = 25000; $vitesse = 10000;
break; break;
case 3: case 3:
$vitesse = 25000; $vitesse = 25000;
break; break;
case 4: case 4:
$vitesse = 100; $vitesse = 60;
break; break;
case 5: case 5:
$vitesse = 50; $vitesse = 25;
break; break;
case 6: case 6:
$vitesse = 200; $vitesse = 35;
break; break;
case 7: case 7:
$vitesse = 400; $vitesse = 200;
break; break;
case 8: case 8:
$vitesse = 800; $vitesse = 600;
break; break;
case 9: case 9:
$vitesse = 1000; $vitesse = 600;
break; break;
case 10: case 10:
$vitesse = 1500; $vitesse = 1000;
break; break;
case 11: case 11:
$vitesse = 50000; $vitesse = 1500;
break; break;
case 12: case 12:
$vitesse = 100000; $vitesse = 5000;
break; break;
case 13: case 13:
$vitesse = 500; $vitesse = 15000;
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);
@ -786,8 +786,56 @@ class dSpatial implements Donnees
} else { } else {
switch ($id) { switch ($id) {
case 0: case 0:
$vitesse = 12000;
break;
case 1:
$vitesse = 50000;
break;
case 2:
$vitesse = 10000;
break;
case 3:
$vitesse = 25000;
break;
case 4:
$vitesse = 25;
break;
case 5:
$vitesse = 35;
break;
case 6:
$vitesse = 35;
break;
case 7:
$vitesse = 200;
break;
case 8:
$vitesse = 600;
break;
case 9:
$vitesse = 700;
break;
case 10:
$vitesse = 1000; $vitesse = 1000;
break; break;
case 11:
$vitesse = 1500;
break;
case 12:
$vitesse = 1000;
break;
case 13:
$vitesse = 3000;
break;
case 14:
$vitesse = 7000;
break;
case 15:
$vitesse = 15000;
break;
case 16:
$vitesse = 20000000;
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);
} }
@ -803,46 +851,46 @@ class dSpatial implements Donnees
if ($planete->race == "humain") { if ($planete->race == "humain") {
switch ($id) { switch ($id) {
case 0: case 0:
$vitesse = 1080; $vitesse = 9;
break; break;
case 1: case 1:
$vitesse = 6300; $vitesse = 6;
break; break;
case 2: case 2:
$vitesse = 6300; $vitesse = 4;
break; break;
case 3: case 3:
$vitesse = 8280; $vitesse = 6;
break; break;
case 4: case 4:
$vitesse = 8280; $vitesse = 10;
break; break;
case 5: case 5:
$vitesse = 1440; $vitesse = 11;
break; break;
case 6: case 6:
$vitesse = 7380; $vitesse = 10.5;
break; break;
case 7: case 7:
$vitesse = 1200; $vitesse = 7;
break; break;
case 8: case 8:
$vitesse = 4680; $vitesse = 6;
break; break;
case 9: case 9:
$vitesse = 16800; $vitesse = 5;
break; break;
case 10: case 10:
$vitesse = 16800; $vitesse = 4;
break; break;
case 11: case 11:
$vitesse = 32400; $vitesse = 3.6;
break; break;
case 12: case 12:
$vitesse = 117000; $vitesse = 3;
break; break;
case 13: case 13:
$vitesse = 117000; $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);
@ -914,46 +962,46 @@ class dSpatial implements Donnees
if ($planete->race == "humain") { if ($planete->race == "humain") {
switch ($id) { switch ($id) {
case 0: case 0:
$vitesse = 1080; $vitesse = 9;
break; break;
case 1: case 1:
$vitesse = 6300; $vitesse = 8;
break; break;
case 2: case 2:
$vitesse = 6300; $vitesse = 6;
break; break;
case 3: case 3:
$vitesse = 8280; $vitesse = 7;
break; break;
case 4: case 4:
$vitesse = 8280; $vitesse = 21;
break; break;
case 5: case 5:
$vitesse = 1440; $vitesse = 10;
break; break;
case 6: case 6:
$vitesse = 7380; $vitesse = 9;
break; break;
case 7: case 7:
$vitesse = 1200; $vitesse = 8;
break; break;
case 8: case 8:
$vitesse = 4680; $vitesse = 8;
break; break;
case 9: case 9:
$vitesse = 16800; $vitesse = 8;
break; break;
case 10: case 10:
$vitesse = 16800; $vitesse = 5;
break; break;
case 11: case 11:
$vitesse = 32400; $vitesse = 5.5;
break; break;
case 12: case 12:
$vitesse = 117000; $vitesse = 4.6;
break; break;
case 13: case 13:
$vitesse = 117000; $vitesse = 4;
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);
@ -1025,46 +1073,46 @@ class dSpatial implements Donnees
if ($planete->race == "humain") { if ($planete->race == "humain") {
switch ($id) { switch ($id) {
case 0: case 0:
$vitesse = 1080; $vitesse = 8;
break; break;
case 1: case 1:
$vitesse = 6300; $vitesse = 10;
break; break;
case 2: case 2:
$vitesse = 6300; $vitesse = 5;
break; break;
case 3: case 3:
$vitesse = 8280; $vitesse = 7;
break; break;
case 4: case 4:
$vitesse = 8280; $vitesse = 11;
break; break;
case 5: case 5:
$vitesse = 1440; $vitesse = 0.1;
break; break;
case 6: case 6:
$vitesse = 7380; $vitesse = 0.09;
break; break;
case 7: case 7:
$vitesse = 1200; $vitesse = 10;
break; break;
case 8: case 8:
$vitesse = 4680; $vitesse = 9.5;
break; break;
case 9: case 9:
$vitesse = 16800; $vitesse = 9.5;
break; break;
case 10: case 10:
$vitesse = 16800; $vitesse = 9;
break; break;
case 11: case 11:
$vitesse = 32400; $vitesse = 8;
break; break;
case 12: case 12:
$vitesse = 117000; $vitesse = 8;
break; break;
case 13: case 13:
$vitesse = 117000; $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);