Version 2007-11-04
This commit is contained in:
parent
4909921671
commit
ebc73c5744
377 changed files with 5163 additions and 2495 deletions
|
|
@ -26,7 +26,7 @@ if (isset($_POST['cons_def_1']) || isset($_POST['cons_def_2']) || isset($_POST['
|
|||
if (isset($_POST['cons_def_1']) && $sa > 0) {
|
||||
if ($metal - ($sa*500) >= 0) {
|
||||
if ($cristal - ($sa*200) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(480/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(480/pow(1.25,($chantier_terrestre-1)));
|
||||
$unit = 9;
|
||||
$metal -= ($sa*500);
|
||||
$cristal -= ($sa*200);
|
||||
|
|
@ -41,7 +41,7 @@ if (isset($_POST['cons_def_1']) || isset($_POST['cons_def_2']) || isset($_POST['
|
|||
elseif (isset($_POST['cons_def_2']) && $sa > 0) {
|
||||
if ($metal - ($sa*4000) >= 0) {
|
||||
if ($cristal - ($sa*2000) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(1560/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(1560/pow(1.25,($chantier_terrestre-3)));
|
||||
$unit = 10;
|
||||
$metal -= ($sa*4000);
|
||||
$cristal -= ($sa*2000);
|
||||
|
|
@ -55,12 +55,12 @@ if (isset($_POST['cons_def_1']) || isset($_POST['cons_def_2']) || isset($_POST['
|
|||
}
|
||||
elseif (isset($_POST['cons_def_3']) && $sa > 0) {
|
||||
if ($metal - ($sa*4500) >= 0) {
|
||||
if ($cristal - ($sa*8000) >= 0) {
|
||||
if ($cristal - ($sa*800) >= 0) {
|
||||
if($hydrogene - ($sa*600) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(1800/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(1800/pow(1.25,($chantier_terrestre-4)));
|
||||
$unit = 11;
|
||||
$metal -= ($sa*4500);
|
||||
$cristal -= ($sa*8000);
|
||||
$cristal -= ($sa*800);
|
||||
$hydrogene -= ($sa*600);
|
||||
|
||||
mysql_query("UPDATE planete SET unit_t='$unit', temps_t='$temps_caserne', metal='$metal', cristal='$cristal', hydrogene='$hydrogene', cons_terrestre='$sa' WHERE galaxie='$galaxy' AND ss='$ss' AND position='$pos'");
|
||||
|
|
@ -75,7 +75,7 @@ if (isset($_POST['cons_def_1']) || isset($_POST['cons_def_2']) || isset($_POST['
|
|||
if ($metal - ($sa*12000) >= 0) {
|
||||
if ($cristal - ($sa*10000) >= 0) {
|
||||
if($hydrogene - ($sa*1000) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(6720/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(6720/pow(1.25,($chantier_terrestre-4)));
|
||||
$unit = 12;
|
||||
$metal -= ($sa*12000);
|
||||
$cristal -= ($sa*10000);
|
||||
|
|
@ -93,7 +93,7 @@ if (isset($_POST['cons_def_1']) || isset($_POST['cons_def_2']) || isset($_POST['
|
|||
if ($metal - ($sa*15000) >= 0) {
|
||||
if ($cristal - ($sa*9500) >= 0) {
|
||||
if($hydrogene - ($sa*1500) >= 0) {
|
||||
$temps_caserne = time() + $sa*ceil(12960/pow(1.25,$chantier_terrestre));
|
||||
$temps_caserne = time() + $sa*ceil(12960/pow(1.25,($chantier_terrestre-8)));
|
||||
$unit = 13;
|
||||
$metal -= ($sa*15000);
|
||||
$cristal -= ($sa*9500);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue