HB/includes/classement/fonctions.php

284 lines
5.9 KiB
PHP
Raw Normal View History

2008-11-17 11:00:00 +00:00
<?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<EFBFBD>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<EFBFBD>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<EFBFBD>rateur d'Hydrog<6F>ne/Synchronisateur d'hydrog<6F>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<EFBFBD>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 <20>nerg<72>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<70>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<65>t/Entrep<65>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;
}
?>