Version 1.0a

This commit is contained in:
nemunaire 2008-11-17 12:00:00 +01:00
commit 6a19363758
908 changed files with 22193 additions and 17408 deletions

View file

@ -0,0 +1,284 @@
<?php
//Script by Keiran
function techno1( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$cristal += ceil(pow(2,$n)*500);
$hydrogene += ceil(pow(2,$n)*150);
$n++;
}
$ressources = $cristal + $hydrogene;
return $ressources;
}
function techno2( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*500);
$cristal += ceil(pow(2,$n)*750);
$hydrogene += ceil(pow(2,$n)*100);
$n++;
}
$ressources = $cristal + $metal + $hydrogene;
return $ressources;
}
function techno3( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*2500);
$cristal += ceil(pow(2,$n)*500);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
function techno4( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*4000);
$cristal += ceil(pow(2,$n)*1500);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
function techno5( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*2000);
$cristal += ceil(pow(2,$n)*1500);
$hydrogene += ceil(pow(2,$n)*300);
$n++;
}
$ressources = $cristal + $metal + $hydrogene;
return $ressources;
}
function techno6( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*1400);
$cristal += ceil(pow(2,$n)*400);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
function techno7( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*3000);
$cristal += ceil(pow(2,$n)*2100);
$hydrogene += ceil(pow(2,$n)*750);
$n++;
}
$ressources = $cristal + $metal + $hydrogene;
return $ressources;
}
function techno8( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*5000);
$cristal += ceil(pow(2,$n)*4000);
$hydrogene += ceil(pow(2,$n)*1500);
$n++;
}
$ressources = $cristal + $metal + $hydrogene;
return $ressources;
}
function techno9( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*800);
$cristal += ceil(pow(2,$n)*1000);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
function techno10( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*2600);
$cristal += ceil(pow(2,$n)*2600);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
function techno11( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(3,$n)*5200);
$cristal += ceil(pow(3,$n)*4250);
$hydrogene += ceil(pow(3,$n)*850);
$n++;
}
$ressources = $cristal + $metal + $hydrogene;
return $ressources;
}
// Batiment n°1 : Purificateur de métal/Générateur de Métal/Usine de métallurgie ; planete.mine_m
function batiment1( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(1.5,$n)*68);
$cristal += ceil(pow(1.5,$n)*17);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°2 : Purificateur de cristal/Générateur de Cristal/Usine de cristal ; planete.mine_m
function batiment2( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(1.6,$n)*53);
$cristal += ceil(pow(1.6,$n)*27);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°3 : Ionisateur/Générateur d'Hydrogène/Synchronisateur d'hydrogène ; planete.mine_h
function batiment3( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(1.5,$n)*242);
$cristal += ceil(pow(1.5,$n)*72);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°4 : Centrale solaire/Générateur d'Energie/Centrale solaire ; planete.centrale_s
function batiment4( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(1.5,$n)*92);
$cristal += ceil(pow(1.5,$n)*37);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°5 : Centrale de fusion/0/Centrale énergétique ; planete.centrale_f
function batiment5( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(1.73,$n)*800);
$cristal += ceil(pow(1.73,$n)*420);
$hydrogene += ceil(pow(1.68,$n)*285);
$n++;
}
$ressources = $cristal + $metal + $hydrogene;
return $ressources;
}
// Batiment n°6 : Oeil des prophètes/0/Base radar ; planete.centrale_f
function batiment6( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*750);
$cristal += ceil(pow(2,$n)*500);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°7 : Centre de recherches/Centre de recherches/Centre de recherches ; planete.labo
function batiment7( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*200);
$cristal += ceil(pow(2,$n)*150);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°8 : Chantier terrestre/Chantier terrestre/Chantier terrestre ; planete.chantier_terrestre
function batiment8( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*520);
$cristal += ceil(pow(2,$labo)*150);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°9 : Chantier spatial/Chantier spatial/Chantier spatial ; planete.chantier_spatial
function batiment9( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*600);
$cristal += ceil(pow(2,$n)*450);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°11 : Entrepôt/Entrepôt/Silo de stockage ; planete.silo
function batiment11( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(2,$n)*400);
$cristal += ceil(pow(2,$n)*260);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
// Batiment n°12 : Centrale informatique/0/Centrale informatique ; planete.centre_info
function batiment12( $nactuel ) {
$n = 0;
while( $n <= $nactuel ) {
$metal += ceil(pow(1.7,$n)*600);
$cristal += ceil(pow(1.7,$n)*420);
$hydrogene += ceil(pow(1.7,$n)*100);
$n++;
}
$ressources = $cristal + $metal;
return $ressources;
}
?>